Keras Model.fit_generator中这三个参数的说明 max_queue_size: maximum size of the internal training queue which is used to "precache" samples from the generator 预缓存的最大队列数量 workers: number of thr
本文介绍如何用multiprocessing模块及Queue实现生产者和消费者的例子 import multiprocessing import time import random class producer(multiprocessing.Process): def __init__(self,no,queue): multiprocessi