Pytorch crashes during tensor multiplication using dtype = float32

keith.fife: <p>Pytorch crashes python when multiplying tensors that have datatype float32.<br>
The error does not arise when the tensor is converted to float64.</p>
<p>Example code to cause the crash:<br>
<code>import torch</code><br>
<code>x = torch.rand((5,5))</code><br>
<code>x@x</code></p>
<p>The error received from Visual Studio 2022 is:<br>
Unhandled exception at 0x00007FF8B441440D (torch_cpu.dll) in python.exe: 0xC0000094: Integer division by zero.</p>
<p>I am running:<br>
Windows 10<br>
Python 3.12<br>
Pytorch 2.5.1, cuda 11.8 - installed using anaconda<br>
CPU AMD Athlon II x4 650<br>
GPU GTX 1050 Ti<br>
Cuda toolkit 11.8<br>
Cuda dnn 9.5.1<br>
Driver 566.14</p>
<p>I reinstalled Cuda toolkit, Cuda dnn, and Pytorch due to a fatal bug training an Ultralytics model and came across this bug. I had a similar bug in the past on Pytorch 2.5.0 (I think), but it went away after I installed Cuda dnn.</p>

ptrblck: <aside class="quote no-group" data-username="keith.fife" data-post="1" data-topic="213249">
<div class="title">
<div class="quote-controls"></div>
<img loading="lazy" alt="" width="24" height="24" src="https://discuss.pytorch.org/letter_avatar_proxy/v4/letter/k/d9b06d/48.png" class="avatar"> keith.fife:</div>
<blockquote>
<p>I reinstalled Cuda toolkit, Cuda dnn</p>
</blockquote>
</aside>
<aside class="quote no-group" data-username="keith.fife" data-post="1" data-topic="213249">
<div class="title">
<div class="quote-controls"></div>
<img loading="lazy" alt="" width="24" height="24" src="https://discuss.pytorch.org/letter_avatar_proxy/v4/letter/k/d9b06d/48.png" class="avatar"> keith.fife:</div>
<blockquote>
<p>I had a similar bug in the past on Pytorch 2.5.0 (I think), but it went away after I installed Cuda dnn.</p>
</blockquote>
</aside>
<p>Your code fails on the host and is not using any CUDA functionality.<br>
Try to grab the stacktraces to narrow down which call fails.</p>

keith.fife: <p>I reinstalled Cuda and Cuda dnn before reinstalling Pytorch.<br>
I installed Cuda 11.8 and Cuda dnn 9.5.1 using the GUI.<br>
I am running python in an Anaconda enviornment - there are instructions for installing the Cuda toolkit using Anaconda, is this method required when using an Anaconda environment?</p>
<p>========================================================================</p>
<p>When I run:<br>
<code>torch.cuda.is_available()</code> → <code>True</code><br>
<code>torch.cuda.is_initialized()</code> → <code>True</code><br>
<code>torch.cuda.get_device_name()</code> → <code>'NVIDIA GeForce GTX 1050 Ti'</code><br>
<code>torch.cuda.get_device_properties(0)</code> → <code>_CudaDeviceProperties(name='NVIDIA GeForce GTX 1050 Ti', major=6, minor=1, total_memory=4095MB, multi_processor_count=6, uuid=08972f5b-ebc1-9f67-6e64-a5b775549112, L2_cache_size=1MB)</code><br>
When I send a tensor to my device there is no error, and no error in matrix multiplication for float32 or float64.<br>
<code>x = torch.rand((5,5)).to(device = 0)</code><br>
<code>x @ x</code> works fine.<br>
<code>x = x.to(torch.float64)</code><br>
<code>x @ x</code> also works fine.<br>
<code>x = x.to(device = 'cpu')</code><br>
<code>x @ x</code> works fine because it is float64.<br>
<code>x = x.to(torch.float32)</code><br>
<code>x @ x</code> crashes</p>
<p>To me this indicates that my Cuda functionallity is working.</p>
<p>========================================================================</p>
<p>When the crash occurs there is no traceback reported, using Visual Studio 2022 gives me the following Call Stack:<br>
torch_cpu.dll!00007ff8adc6440d()<br>
torch_cpu.dll!00007ff8adc63688()<br>
torch_cpu.dll!00007ff8adc6395a()<br>
torch_cpu.dll!00007ff8adf30e1b()<br>
torch_cpu.dll!00007ff8adf311b8()<br>
torch_cpu.dll!00007ff8adf31124()<br>
torch_cpu.dll!00007ff8adf2fd29()<br>
torch_cpu.dll!00007ff8adf2fade()<br>
torch_cpu.dll!00007ff8a99e6fdd()<br>
torch_cpu.dll!00007ff8a9f97ab2()<br>
torch_cpu.dll!00007ff8a9f9c03e()<br>
torch_cpu.dll!00007ff8a9a5bd5f()<br>
torch_cpu.dll!00007ff8a9b328fa()<br>
torch_cpu.dll!00007ff8a9b37d0d()<br>
torch_cpu.dll!00007ff8a9b3dca1()<br>
torch_cpu.dll!00007ff8aa817d21()<br>
torch_cpu.dll!00007ff8aa7cf256()<br>
torch_cpu.dll!00007ff8aa5b5055()<br>
torch_cpu.dll!00007ff8abe283d3()<br>
torch_cpu.dll!00007ff8abdf421c()<br>
torch_cpu.dll!00007ff8aa548c01()<br>
torch_cpu.dll!00007ff8a9b35068()<br>
torch_cpu.dll!00007ff8a9b46ef7()<br>
torch_cpu.dll!00007ff8aaaf054e()<br>
torch_cpu.dll!00007ff8aaad1346()<br>
torch_cpu.dll!00007ff8aa64f6c1()<br>
torch_cpu.dll!00007ff8a9731f74()<br>
torch_python.dll!00007ff906501216()<br>
torch_python.dll!00007ff906583043()<br>
torch_python.dll!00007ff9064f139b()<br>
python312.dll!method_vectorcall_VARARGS_KEYWORDS(_object * func, _object * const * args, unsigned __int64 nargsf, _object * kwnames) Line 367<br>
python312.dll!_PyObject_VectorcallTstate(_ts * tstate, _object * callable, _object * const * args, unsigned __int64 nargsf, _object *) Line 92<br>
[Inline Frame] python312.dll!vectorcall_unbound(_ts *) Line 2230<br>
python312.dll!vectorcall_maybe(_ts * tstate, _object * name, _object * const * args, __int64) Line 2283<br>
python312.dll!slot_nb_matrix_multiply(_object * self, _object * other) Line 8570<br>
python312.dll!binary_op1(_object * v, _object * w, const int op_slot) Line 882<br>
[Inline Frame] python312.dll!binary_op(_object *) Line 921<br>
python312.dll!PyNumber_MatrixMultiply(_object * v, _object * w) Line 1119<br>
python312.dll!_PyEval_EvalFrameDefault(_ts * tstate, _PyInterpreterFrame * frame, int throwflag) Line 843<br>
[Inline Frame] python312.dll!_PyEval_EvalFrame(_ts *) Line 89<br>
[Inline Frame] python312.dll!_PyEval_Vector(_ts *) Line 1683<br>
python312.dll!PyEval_EvalCode(_object * co, _object * globals, _object * locals) Line 578<br>
python312.dll!run_eval_code_obj(_ts * tstate, PyCodeObject * co, _object * globals, _object * locals) Line 1723<br>
python312.dll!run_mod(_mod * mod, _object * filename, _object * globals, _object * locals, PyCompilerFlags * flags, _arena * arena) Line 1744<br>
python312.dll!PyRun_InteractiveOneObjectEx(_iobuf * fp, _object * filename, PyCompilerFlags * flags) Line 261<br>
python312.dll!_PyRun_InteractiveLoopObject(_iobuf * fp, _object * filename, PyCompilerFlags * flags) Line 137<br>
[Inline Frame] python312.dll!_PyRun_AnyFileObject(_iobuf *) Line 72<br>
[Inline Frame] python312.dll!PyRun_AnyFileExFlags(_iobuf * fp, const char *) Line 104<br>
python312.dll!pymain_run_stdin(PyConfig * config) Line 520<br>
python312.dll!pymain_run_python(int * exitcode) Line 635<br>
python312.dll!Py_RunMain() Line 711<br>
[Inline Frame] python312.dll!pymain_main(_PyArgv *) Line 739<br>
python312.dll!Py_Main(int argc, wchar_t * * argv) Line 752</p>
<p>========================================================================</p>
<p>The Output section of Visual Studio 2022 provides:<br>
‘python.exe’ (Win32): Loaded ‘C:\Users\Keith\anaconda3\envs\PT\python.exe’. Symbols loaded.<br>
‘python.exe’ (Win32): Loaded ‘C:\Windows\System32\ntdll.dll’.<br>
‘python.exe’ (Win32): Loaded ‘C:\Windows\System32\kernel32.dll’.<br>
‘python.exe’ (Win32): Loaded ‘C:\Windows\System32\KernelBase.dll’.<br>
‘python.exe’ (Win32): Loaded ‘C:\Windows\System32\ucrtbase.dll’.<br>
‘python.exe’ (Win32): Loaded ‘C:\Users\Keith\anaconda3\envs\PT\python312.dll’. Symbols loaded.<br>
‘python.exe’ (Win32): Loaded ‘C:\Windows\System32\ws2_32.dll’.<br>
‘python.exe’ (Win32): Loaded ‘C:\Windows\System32\rpcrt4.dll’.<br>
‘python.exe’ (Win32): Loaded ‘C:\Windows\System32\bcrypt.dll’.<br>
‘python.exe’ (Win32): Loaded ‘C:\Windows\System32\advapi32.dll’.<br>
‘python.exe’ (Win32): Loaded ‘C:\Windows\System32\msvcrt.dll’.<br>
‘python.exe’ (Win32): Loaded ‘C:\Windows\System32\sechost.dll’.<br>
‘python.exe’ (Win32): Loaded ‘C:\Windows\System32\version.dll’.<br>
‘python.exe’ (Win32): Loaded ‘C:\Users\Keith\anaconda3\envs\PT\vcruntime140.dll’.<br>
‘python.exe’ (Win32): Loaded ‘C:\Users\Keith\anaconda3\envs\PT\zlib.dll’. Module was built without symbols.<br>
‘python.exe’ (Win32): Loaded ‘C:\Windows\System32\bcryptprimitives.dll’.<br>
‘python.exe’ (Win32): Loaded ‘C:\Users\Keith\anaconda3\envs\PT\python3.dll’.<br>
‘python.exe’ (Win32): Loaded ‘C:\Users\Keith\anaconda3\envs\PT\DLLs_ctypes.pyd’.<br>
‘python.exe’ (Win32): Loaded ‘C:\Windows\System32\ole32.dll’.<br>
‘python.exe’ (Win32): Loaded ‘C:\Windows\System32\combase.dll’.<br>
‘python.exe’ (Win32): Loaded ‘C:\Windows\System32\gdi32.dll’.<br>
‘python.exe’ (Win32): Loaded ‘C:\Windows\System32\win32u.dll’.<br>
‘python.exe’ (Win32): Loaded ‘C:\Windows\System32\gdi32full.dll’.<br>
‘python.exe’ (Win32): Loaded ‘C:\Windows\System32\msvcp_win.dll’.<br>
‘python.exe’ (Win32): Loaded ‘C:\Windows\System32\user32.dll’.<br>
‘python.exe’ (Win32): Loaded ‘C:\Windows\System32\oleaut32.dll’.<br>
‘python.exe’ (Win32): Loaded ‘C:\Users\Keith\anaconda3\envs\PT\Library\bin\ffi-8.dll’. Module was built without symbols.<br>
‘python.exe’ (Win32): Loaded ‘C:\Windows\System32\imm32.dll’.<br>
‘python.exe’ (Win32): Loaded ‘C:\Users\Keith\anaconda3\envs\PT\DLLs_wmi.pyd’.<br>
‘python.exe’ (Win32): Loaded ‘C:\Windows\System32\propsys.dll’.<br>
‘python.exe’ (Win32): Loaded ‘C:\Users\Keith\anaconda3\envs\PT\vcruntime140_1.dll’.<br>
‘python.exe’ (Win32): Loaded ‘C:\Users\Keith\anaconda3\envs\PT\DLLs_bz2.pyd’.<br>
‘python.exe’ (Win32): Loaded ‘C:\Users\Keith\anaconda3\envs\PT\Library\bin\libbz2.dll’. Module was built without symbols.<br>
‘python.exe’ (Win32): Loaded ‘C:\Users\Keith\anaconda3\envs\PT\DLLs_lzma.pyd’.<br>
‘python.exe’ (Win32): Loaded ‘C:\Users\Keith\anaconda3\envs\PT\Library\bin\liblzma.dll’.<br>
‘python.exe’ (Win32): Loaded ‘C:\Users\Keith\anaconda3\envs\PT\DLLs_socket.pyd’.<br>
‘python.exe’ (Win32): Loaded ‘C:\Windows\System32\IPHLPAPI.DLL’.<br>
‘python.exe’ (Win32): Loaded ‘C:\Users\Keith\anaconda3\envs\PT\DLLs\select.pyd’.<br>
‘python.exe’ (Win32): Loaded ‘C:\Users\Keith\anaconda3\envs\PT\msvcp140.dll’.<br>
‘python.exe’ (Win32): Loaded ‘C:\Users\Keith\anaconda3\envs\PT\Lib\site-packages\torch\lib\asmjit.dll’. Module was built without symbols.<br>
‘python.exe’ (Win32): Loaded ‘C:\Users\Keith\anaconda3\envs\PT\Lib\site-packages\torch\lib\c10.dll’. Module was built without symbols.<br>
‘python.exe’ (Win32): Loaded ‘C:\Windows\System32\dbghelp.dll’.<br>
‘python.exe’ (Win32): Loaded ‘C:\Users\Keith\anaconda3\envs\PT\Lib\site-packages\torch\lib\c10_cuda.dll’. Module was built without symbols.<br>
‘python.exe’ (Win32): Loaded ‘C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\bin\cudart64_110.dll’. Module was built without symbols.<br>
‘python.exe’ (Win32): Loaded ‘C:\Windows\System32\cryptbase.dll’.<br>
‘python.exe’ (Win32): Loaded ‘C:\Users\Keith\anaconda3\envs\PT\Lib\site-packages\torch\lib\caffe2_nvrtc.dll’. Module was built without symbols.<br>
‘python.exe’ (Win32): Loaded ‘C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\bin\nvrtc64_112_0.dll’. Module was built without symbols.<br>
‘python.exe’ (Win32): Loaded ‘C:\Windows\System32\shell32.dll’.<br>
‘python.exe’ (Win32): Loaded ‘C:\Users\Keith\anaconda3\envs\PT\Lib\site-packages\torch\lib\cudnn64_9.dll’. Module was built without symbols.<br>
‘python.exe’ (Win32): Loaded ‘C:\Users\Keith\anaconda3\envs\PT\Lib\site-packages\torch\lib\cudnn_adv64_9.dll’. Module was built without symbols.<br>
‘python.exe’ (Win32): Loaded ‘C:\Users\Keith\anaconda3\envs\PT\Lib\site-packages\torch\lib\cudnn_ops64_9.dll’. Module was built without symbols.<br>
‘python.exe’ (Win32): Loaded ‘C:\Users\Keith\anaconda3\envs\PT\Lib\site-packages\torch\lib\cudnn_graph64_9.dll’. Module was built without symbols.<br>
‘python.exe’ (Win32): Loaded ‘C:\Users\Keith\anaconda3\envs\PT\Lib\site-packages\torch\lib\cudnn_cnn64_9.dll’. Module was built without symbols.<br>
‘python.exe’ (Win32): Loaded ‘C:\Users\Keith\anaconda3\envs\PT\Lib\site-packages\torch\lib\cudnn_engines_precompiled64_9.dll’. Module was built without symbols.<br>
‘python.exe’ (Win32): Loaded ‘C:\Windows\System32\nvcuda.dll’.<br>
‘python.exe’ (Win32): Loaded ‘C:\Users\Keith\anaconda3\envs\PT\Lib\site-packages\torch\lib\cudnn_engines_runtime_compiled64_9.dll’. Module was built without symbols.<br>
‘python.exe’ (Win32): Loaded ‘C:\Users\Keith\anaconda3\envs\PT\Lib\site-packages\torch\lib\cudnn_heuristic64_9.dll’. Module was built without symbols.<br>
‘python.exe’ (Win32): Loaded ‘C:\Users\Keith\anaconda3\envs\PT\Lib\site-packages\torch\lib\cupti64_2022.3.0.dll’.<br>
‘python.exe’ (Win32): Loaded ‘C:\Users\Keith\anaconda3\envs\PT\Lib\site-packages\torch\lib\fbgemm.dll’. Module was built without symbols.<br>
‘python.exe’ (Win32): Loaded ‘C:\Users\Keith\anaconda3\envs\PT\Library\bin\libiomp5md.dll’. Symbols loaded.<br>
‘python.exe’ (Win32): Loaded ‘C:\Users\Keith\anaconda3\envs\PT\Lib\site-packages\torch\lib\nvToolsExt64_1.dll’.<br>
‘python.exe’ (Win32): Loaded ‘C:\Users\Keith\anaconda3\envs\PT\Lib\site-packages\torch\lib\shm.dll’. Module was built without symbols.<br>
‘python.exe’ (Win32): Loaded ‘C:\Users\Keith\anaconda3\envs\PT\Lib\site-packages\torch\lib\torch_cuda.dll’. Module was built without symbols.<br>
‘python.exe’ (Win32): Loaded ‘C:\Users\Keith\anaconda3\envs\PT\Lib\site-packages\torch\lib\torch_cpu.dll’. Module was built without symbols.<br>
‘python.exe’ (Win32): Loaded ‘C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\bin\cusparse64_11.dll’. Module was built without symbols.<br>
‘python.exe’ (Win32): Loaded ‘C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\bin\cufft64_10.dll’. Module was built without symbols.<br>
‘python.exe’ (Win32): Loaded ‘C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\bin\cusolver64_11.dll’. Module was built without symbols.<br>
‘python.exe’ (Win32): Loaded ‘C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\bin\cublas64_11.dll’. Module was built without symbols.<br>
‘python.exe’ (Win32): Loaded ‘C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\bin\cublasLt64_11.dll’. Module was built without symbols.<br>
‘python.exe’ (Win32): Loaded ‘C:\Users\Keith\anaconda3\envs\PT\Library\bin\mkl_intel_thread.2.dll’. Module was built without symbols.<br>
‘python.exe’ (Win32): Loaded ‘C:\Users\Keith\anaconda3\envs\PT\Library\bin\uv.dll’. Module was built without symbols.<br>
‘python.exe’ (Win32): Loaded ‘C:\Windows\System32\userenv.dll’.<br>
‘python.exe’ (Win32): Loaded ‘C:\Windows\System32\dbgcore.dll’.<br>
‘python.exe’ (Win32): Loaded ‘C:\Users\Keith\anaconda3\envs\PT\Lib\site-packages\torch\lib\torch.dll’. Module was built without symbols.<br>
‘python.exe’ (Win32): Loaded ‘C:\Users\Keith\anaconda3\envs\PT\Lib\site-packages\torch\lib\torch_global_deps.dll’. Module was built without symbols.<br>
‘python.exe’ (Win32): Loaded ‘C:\Users\Keith\anaconda3\envs\PT\Lib\site-packages\torch\lib\torch_python.dll’. Module was built without symbols.<br>
‘python.exe’ (Win32): Loaded ‘C:\Users\Keith\anaconda3\envs\PT\Lib\site-packages\torch\lib\zlibwapi.dll’. Module was built without symbols.<br>
‘python.exe’ (Win32): Loaded ‘C:\Windows\System32\kernel.appcore.dll’.<br>
‘python.exe’ (Win32): Loaded ‘C:\Windows\System32\uxtheme.dll’.<br>
‘python.exe’ (Win32): Loaded ‘C:\Windows\System32\clbcatq.dll’.<br>
‘python.exe’ (Win32): Loaded ‘C:\Windows\System32\amsi.dll’.<br>
‘python.exe’ (Win32): Loaded ‘C:\Windows\System32\profapi.dll’.<br>
‘python.exe’ (Win32): Loaded ‘C:\ProgramData\Microsoft\Windows Defender\Platform\4.18.24090.11-0\MpOAV.dll’.<br>
‘python.exe’ (Win32): Loaded ‘C:\Users\Keith\anaconda3\envs\PT\Lib\site-packages\torch_C.cp312-win_amd64.pyd’. Module was built without symbols.<br>
‘python.exe’ (Win32): Loaded ‘C:\Users\Keith\anaconda3\envs\PT\Library\bin\mkl_core.2.dll’. Module was built without symbols.<br>
‘python.exe’ (Win32): Loaded ‘C:\Users\Keith\anaconda3\envs\PT\Library\bin\tbbmalloc.dll’. Module was built without symbols.<br>
‘python.exe’ (Win32): Loaded ‘C:\Users\Keith\anaconda3\envs\PT\Lib\site-packages\mkl_mklinit.cp312-win_amd64.pyd’. Module was built without symbols.<br>
‘python.exe’ (Win32): Loaded ‘C:\Users\Keith\anaconda3\envs\PT\Library\bin\mkl_rt.2.dll’. Module was built without symbols.<br>
‘python.exe’ (Win32): Loaded ‘C:\Users\Keith\anaconda3\envs\PT\Lib\site-packages\mkl_py_mkl_service.cp312-win_amd64.pyd’. Module was built without symbols.<br>
‘python.exe’ (Win32): Loaded ‘C:\Users\Keith\anaconda3\envs\PT\Lib\site-packages\numpy\core_multiarray_umath.cp312-win_amd64.pyd’. Module was built without symbols.<br>
‘python.exe’ (Win32): Loaded ‘C:\Users\Keith\anaconda3\envs\PT\Lib\site-packages\numpy\core_multiarray_tests.cp312-win_amd64.pyd’. Module was built without symbols.<br>
‘python.exe’ (Win32): Loaded ‘C:\Users\Keith\anaconda3\envs\PT\Lib\site-packages\numpy\linalg_umath_linalg.cp312-win_amd64.pyd’. Module was built without symbols.<br>
‘python.exe’ (Win32): Loaded ‘C:\Users\Keith\anaconda3\envs\PT\Lib\site-packages\numpy\fft_pocketfft_internal.cp312-win_amd64.pyd’. Module was built without symbols.<br>
‘python.exe’ (Win32): Loaded ‘C:\Users\Keith\anaconda3\envs\PT\Lib\site-packages\numpy\random\mtrand.cp312-win_amd64.pyd’. Module was built without symbols.<br>
‘python.exe’ (Win32): Loaded ‘C:\Users\Keith\anaconda3\envs\PT\Lib\site-packages\numpy\random\bit_generator.cp312-win_amd64.pyd’. Module was built without symbols.<br>
‘python.exe’ (Win32): Loaded ‘C:\Users\Keith\anaconda3\envs\PT\Lib\site-packages\numpy\random_common.cp312-win_amd64.pyd’. Module was built without symbols.<br>
‘python.exe’ (Win32): Loaded ‘C:\Users\Keith\anaconda3\envs\PT\DLLs_hashlib.pyd’.<br>
‘python.exe’ (Win32): Loaded ‘C:\Users\Keith\anaconda3\envs\PT\Library\bin\libcrypto-3-x64.dll’. Symbols loaded.<br>
‘python.exe’ (Win32): Loaded ‘C:\Windows\System32\crypt32.dll’.<br>
‘python.exe’ (Win32): Loaded ‘C:\Users\Keith\anaconda3\envs\PT\Lib\site-packages\numpy\random_bounded_integers.cp312-win_amd64.pyd’. Module was built without symbols.<br>
‘python.exe’ (Win32): Loaded ‘C:\Users\Keith\anaconda3\envs\PT\Lib\site-packages\numpy\random_mt19937.cp312-win_amd64.pyd’. Module was built without symbols.<br>
‘python.exe’ (Win32): Loaded ‘C:\Users\Keith\anaconda3\envs\PT\Lib\site-packages\numpy\random_philox.cp312-win_amd64.pyd’. Module was built without symbols.<br>
‘python.exe’ (Win32): Loaded ‘C:\Users\Keith\anaconda3\envs\PT\Lib\site-packages\numpy\random_pcg64.cp312-win_amd64.pyd’. Module was built without symbols.<br>
‘python.exe’ (Win32): Loaded ‘C:\Users\Keith\anaconda3\envs\PT\Lib\site-packages\numpy\random_sfc64.cp312-win_amd64.pyd’. Module was built without symbols.<br>
‘python.exe’ (Win32): Loaded ‘C:\Users\Keith\anaconda3\envs\PT\Lib\site-packages\numpy\random_generator.cp312-win_amd64.pyd’. Module was built without symbols.<br>
‘python.exe’ (Win32): Loaded ‘C:\Users\Keith\anaconda3\envs\PT\Library\bin\mkl_def.2.dll’. Module was built without symbols.<br>
‘python.exe’ (Win32): Loaded ‘C:\Users\Keith\anaconda3\envs\PT\Library\bin\mkl_vml_def.2.dll’. Module was built without symbols.<br>
‘python.exe’ (Win32): Loaded ‘C:\Users\Keith\anaconda3\envs\PT\DLLs_queue.pyd’.<br>
‘python.exe’ (Win32): Loaded ‘C:\Users\Keith\anaconda3\envs\PT\DLLs_uuid.pyd’.<br>
‘python.exe’ (Win32): Loaded ‘C:\Users\Keith\anaconda3\envs\PT\DLLs_ssl.pyd’.<br>
‘python.exe’ (Win32): Loaded ‘C:\Users\Keith\anaconda3\envs\PT\Library\bin\libssl-3-x64.dll’. Symbols loaded.<br>
‘python.exe’ (Win32): Loaded ‘C:\Users\Keith\anaconda3\envs\PT\DLLs\unicodedata.pyd’.<br>
‘python.exe’ (Win32): Loaded ‘C:\Users\Keith\anaconda3\envs\PT\DLLs_multiprocessing.pyd’.<br>
‘python.exe’ (Win32): Loaded ‘C:\Users\Keith\anaconda3\envs\PT\DLLs_asyncio.pyd’.<br>
‘python.exe’ (Win32): Loaded ‘C:\Users\Keith\anaconda3\envs\PT\DLLs_overlapped.pyd’.<br>
‘python.exe’ (Win32): Loaded ‘C:\Windows\System32\mswsock.dll’.<br>
The thread 6752 has exited with code 0 (0x0).<br>
The thread 9244 has exited with code 0 (0x0).<br>
Unhandled exception at 0x00007FF8ADC6440D (torch_cpu.dll) in python.exe: 0xC0000094: Integer division by zero.</p>
<p>========================================================================</p>
<p>Again, the crash only occurs using float32 on cpu. Any help would be greatly appreciated.</p>