You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "/home/USER/Desktop/PYTHON Document/examples/mnist/main.py", line 147, in <module>
main()
File "/home/USER/Desktop/PYTHON Document/examples/mnist/main.py", line 138, in main
train(args, model, device, train_loader, optimizer, epoch)
File "/home/USER/Desktop/PYTHON Document/examples/mnist/main.py", line 45, in train
output = model(data)
^^^^^^^^^^^
File "/home/USER/Desktop/PYTHON Document/PhyRevE/.venv/lib/python3.12/site-packages/torch/nn/modules/module.py", line 1739, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/USER/Desktop/PYTHON Document/PhyRevE/.venv/lib/python3.12/site-packages/torch/nn/modules/module.py", line 1750, in _call_impl
return forward_call(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/USER/Desktop/PYTHON Document/examples/mnist/main.py", line 25, in forward
x = self.conv1(x)
^^^^^^^^^^^^^
File "/home/USER/Desktop/PYTHON Document/PhyRevE/.venv/lib/python3.12/site-packages/torch/nn/modules/module.py", line 1739, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/USER/Desktop/PYTHON Document/PhyRevE/.venv/lib/python3.12/site-packages/torch/nn/modules/module.py", line 1750, in _call_impl
return forward_call(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/USER/Desktop/PYTHON Document/PhyRevE/.venv/lib/python3.12/site-packages/torch/nn/modules/conv.py", line 554, in forward
return self._conv_forward(input, self.weight, self.bias)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/USER/Desktop/PYTHON Document/PhyRevE/.venv/lib/python3.12/site-packages/torch/nn/modules/conv.py", line 549, in _conv_forward
return F.conv2d(
^^^^^^^^^
RuntimeError: HIP error: invalid device function
HIP kernel errors might be asynchronously reported at some other API call, so the stacktrace below might be incorrect.
For debugging consider passing AMD_SERIALIZE_KERNEL=3
Compile with `TORCH_USE_HIP_DSA` to enable device-side assertions.
Context
Your Environment
Expected Behavior
Current Behavior
Possible Solution
But it doesn't work for me.
Steps to Reproduce
pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/rocm6.2.4
examples
and cd the directory.python3 mnist/main.py
Failure Logs [if any]
Output of
AMD_LOG_LEVEL=3 python main.py
AMD_LOG.log
The text was updated successfully, but these errors were encountered: