Abhishek Manandhar added the comment:
Yes actually it produce no erroe on standalone script. But the script
executes without any outputs. not even for numpy function. I used code
below in script.
import multiprocessing
import numpy
def f(x):
return x*x
if __name__ = "__main__&qu
New submission from Abhishek Manandhar:
I was looking to implement multiprocess pool. It worked fine with the numpy
function while with the user defined function it ran into error.
import numpy
>>> import multiprocessing
>>> P = multiprocessing.Pool(5)
>>> P.map(