[Question] Trying to train deep learning on Python Pyside2-based GUI

I’ve made a deep learning training tool based on python pyside2.
I’m using torch version : ‘0.12.0+cu113’
well, current cuda I’m using is 11.1, but the training works on python script.

I’m trying to export it as .exe file using pyinstaller,
but when it comes to training phase,
it doesn’t work.

Do I need any extra .dll or anything that relates to using pytorch gpu(cuda) when converting the GUI to .exe using pyinstaller?