You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import math
def lcm(a,b): return abs(a * b)/math.gcd(a,b) if a and b else 0
Problem 2:
raise RuntimeError('''
RuntimeError:
An attempt has been made to start a new process before the
current process has finished its bootstrapping phase.
This probably means that you are not using fork to start your
child processes and you have forgotten to use the proper idiom
in the main module:
if __name__ == '__main__':
freeze_support()
...
The "freeze_support()" line can be omitted if the program
is not going to be frozen to produce an executable.
add these code in train.py
import multiprocessing
if __name__ == '__main__':
multiprocessing.freeze_support()
The text was updated successfully, but these errors were encountered:
windows with python 3.9 faced problems:
Problem 1:
train.py
, line 9 should be modified in python 3.9Problem 2:
add these code in train.py
The text was updated successfully, but these errors were encountered: