【发布时间】:2017-04-22 09:18:55
【问题描述】:
我有两个对象
shared_array = numpy.zeros(20)
和
shared_matrix = scipy.sparse.csr_matrix((data, (row, col)),(20,20),dtype=numpy.float64)
我希望所有进程都可以访问它
multiprocessing.Process(target = random_function, args = (shared_matrix, shared_array))
这是怎么做到的?
【问题讨论】:
标签: python numpy scipy shared-memory python-multiprocessing