当我尝试拟合以下模型时:
history = model.fit(X_train, y_train,
validation_data=[X_test, y_test],
batch_size=50,
epochs=100,
use_multiprocessing=True,
workers=8,
verbose=1)
我收到以下错误:
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-53-f5dcd501cd38> in <module>
17 use_multiprocessing=True,
18 workers=8,
---> 19 verbose=1)
~\Anaconda3\envs\tensorflow_env\lib\site-packages\keras\engine\training.py in fit(self, x, y, batch_size, epochs, verbose, callbacks, validation_split, validation_data, shuffle, class_weight, sample_weight, initial_epoch, steps_per_epoch, validation_steps, **kwargs)
940 epochs = kwargs.pop('nb_epoch')
941 if kwargs:
--> 942 raise TypeError('Unrecognized keyword arguments: ' + str(kwargs))
943 if x is None and y is None and steps_per_epoch is None:
944 raise ValueError('If fitting from data tensors, '
TypeError: Unrecognized keyword arguments: {'use_multiprocessing': True, 'workers': 8}
use_multiprocessing
中没有workers
和keras-gpu
吗?他们在文档中。我在网上找不到任何提及此问题的信息。我在做什么错了?