Hello, I am trying to train a neural network in the background (or in a tab that is not active).
I am using TFJS (3.11) with React and Ionic to deploy it also for mobile. The training works without problem when the tab of the browser is in foreground or the app is on the foreground with the screen on for the mobile.
When I switch to another tab on the browser or when I turn off the screen of the mobile the training stops. When I go back to the app/web-app the training resumes from where it froze.
Is there a way to keep the app training even when it is moved to the background?
Right now I am trying with web-workers but I am facing some issues with React and I am not guaranteed that it will work.
Best regards,
Nelu