update
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
# 数组分割示例
|
||||
import numpy as np
|
||||
import guan
|
||||
cpus = 4
|
||||
task_num = 4
|
||||
parameter_array_all = np.arange(0, 17, 1)
|
||||
for task_index in range(cpus):
|
||||
parameter_array = guan.preprocess_for_parallel_calculations(parameter_array_all, cpus, task_index)
|
||||
for task_index in range(task_num):
|
||||
parameter_array = guan.preprocess_for_parallel_calculations(parameter_array_all, task_num, task_index)
|
||||
print(parameter_array)
|
||||
print()
|
Reference in New Issue
Block a user