nsml.paused¶
-
nsml.
paused
(scope=None)¶ This function is used to execute commands to regenerate a session using the nsml command, such as nsml fork, nsml submit, nsml infer
Internally, you should be able to get the option ‘pause (int)’ in the entry file, because it will regenerate the session with the option \-\-pause 1 in the main entry file.
The operation method differs according to each command.
- Parameters
scope – The scope of the main function for the entry file.
Warning
If you have main function in entry file, you have to pass the
locals()
variable of main function. Otherwise, the following error will occur.- nsml fork
After the nsml.load function is called, the nsml.paused function ends.
- nsml submit
After nsml.load called, nsml.infer function that declared in nsml.bind invokes. After evaluating test_data, the results are sent to the nsml server and written to the leaderboard.
Note
The nsml.paused() function should be called after nsml.bind() is called.