ArmenAg:

terminate called after throwing an instance of 'std::runtime_error’
what():  CUDA error (3): initialization error
terminate called recursively
terminate called after throwing an instance of 'std::runtime_error’
terminate called after throwing an instance of ‘std::runtime_error’


It seems that this error occurs when do backward computing of the final loss in each training process.