C:\cb\pytorch_1000000000000\work\aten\src\ATen\native\cuda\Loss.cu:106: block: [0,0,0], thread: [32,0,0] Assertion `input_val >= zero && input_val <= one` failed.
C:\cb\pytorch_1000000000000\work\aten\src\ATen\native\cuda\Loss.cu:106: block: [0,0,0], thread: [33,0,0] Assertion `input_val >= zero && input_val <= one` failed.
C:\cb\pytorch_1000000000000\work\aten\src\ATen\native\cuda\Loss.cu:106: block: [0,0,0], thread: [34,0,0] Assertion `input_val >= zero && input_val <= one` failed.
C:\cb\pytorch_1000000000000\work\aten\src\ATen\native\cuda\Loss.cu:106: block: [0,0,0], thread: [35,0,0] Assertion `input_val >= zero && input_val <= one` failed.
C:\cb\pytorch_1000000000000\work\aten\src\ATen\native\cuda\Loss.cu:106: block: [0,0,0], thread: [36,0,0] Assertion `input_val >= zero && input_val <= one` failed.
C:\cb\pytorch_1000000000000\work\aten\src\ATen\native\cuda\Loss.cu:106: block: [0,0,0], thread: [37,0,0] Assertion `input_val >= zero && input_val <= one` failed.
C:\cb\pytorch_1000000000000\work\aten\src\ATen\native\cuda\Loss.cu:106: block: [0,0,0], thread: [38,0,0] Assertion `input_val >= zero && input_val <= one` failed.
C:\cb\pytorch_1000000000000\work\aten\src\ATen\native\cuda\Loss.cu:106: block: [0,0,0], thread: [39,0,0] Assertion `input_val >= zero && input_val <= one` failed.
C:\cb\pytorch_1000000000000\work\aten\src\ATen\native\cuda\Loss.cu:106: block: [0,0,0], thread: [40,0,0] Assertion `input_val >= zero && input_val <= one` failed.
........ some hundred lines
CUDA error: device-side assert triggered
Compile with `TORCH_USE_CUDA_DSA` to enable device-side assertions.
had this in my code
import os
os.environ['CUDA_LAUNCH_BLOCKING']="1"
os.environ['TORCH_USE_CUDA_DSA'] = "1"
and also this in the terminal
`>> set CUDA_LAUNCH_BLOCKING = 1
SET TORCH_USE_CUDA_DSA = 1`
(in the conda env, I was running), but it returned the asynchronous stack, nonetheless.
This is the actual error, that I am facing. Is this the vanishing or exploding gradient problem ?
trian and test accuracy for last 10 epochs are as follows:
Epoch: train11| train loss: 0.11601685239549946| val accuracy: 0.9291666746139526
Epoch: train12| train accuracy: 0.956944465637207
Epoch: train12| train loss: 0.13100543859250405| val accuracy: 0.9583333134651184
Epoch: train13| train accuracy: 0.9550926089286804
Epoch: train13| train loss: 0.14594609443755707| val accuracy: 0.8374999761581421
Epoch: train14| train accuracy: 0.9574074149131775
Epoch: train14| train loss: 0.14393691696664865| val accuracy: 0.925000011920929
Epoch: train15| train accuracy: 0.9643518328666687
Epoch: train15| train loss: 0.10682554904590634| val accuracy: 0.9375
Epoch: train16| train accuracy: 0.9745370149612427
Epoch: train16| train loss: 0.07701346902724573| val accuracy: 0.9458333253860474
Epoch: train17| train accuracy: 0.9597222208976746
Epoch: train17| train loss: 0.12430122270084479| val accuracy: 0.887499988079071
Epoch: train18| train accuracy: 0.9624999761581421
Epoch: train18| train loss: 0.10855092442430118| val accuracy: 0.9458333253860474
Epoch: train19| train accuracy: 0.9675925970077515
Epoch: train19| train loss: 0.09032832853057807| val accuracy: 0.9583333134651184
Epoch: train20| train accuracy: 0.9782407283782959
Epoch: train20| train loss: 0.06491927988827227| val accuracy: 0.9708333611488342
Epoch: train21| train accuracy: 0.9814814925193787
Epoch: train21| train loss: 0.05672524696873391| val accuracy: 0.987500011920929
Epoch: train22| train accuracy: 0.9800925850868225
Epoch: train22| train loss: 0.06026066580842084| val accuracy: 0.949999988079071
Epoch: train23| train accuracy: 0.9791666865348816
Epoch: train23| train loss: 0.0585806009852711| val accuracy: 0.9750000238418579
Epoch: train24| train accuracy: 0.9837962985038757
Epoch: train24| train loss: 0.056918492759851835| val accuracy: 0.9458333253860474
Epoch: train25| train accuracy: 0.9731481671333313
Epoch: train25| train loss: 0.09047737471101917| val accuracy: 0.9750000238418579
Epoch: train26| train accuracy: 0.9694444537162781
Epoch: train26| train loss: 0.0833502056159298| val accuracy: 0.9708333611488342
Epoch: train27| train accuracy: 0.9791666865348816
Epoch: train27| train loss: 0.0535214664414525| val accuracy: 0.9750000238418579
plz, let me know, if you need any more information