【发布时间】:2022-06-16 10:55:22
【问题描述】:
当我运行 fit 函数时,我的内核一直在死机 我的张量流版本 2.6.0
我已经重新安装了 jupyter notebook,升级了我的 pip,升级了我的 tensoflow 库, 添加了这一行
import os
os.environ['KMP_DUPLICATE_LIB_OK']='True'
我的内核仍然死机
这是我尝试运行的代码
learning_rate_reduction = ReduceLROnPlateau(monitor = 'val_acc', patience = 3, verbose = 1, factor = .5, min_lr = .00001)
es = EarlyStopping(monitor='val_categorical_accuracy', patience = 4)
print('====')
history = model.fit_generator(generator = train_batches, steps_per_epoch = train_batches.n//batch_size, epochs=epochs,
validation_data = val_batches, validation_steps = val_batches.n//batch_size, verbose = 0,
callbacks = [learning_rate_reduction, es])
【问题讨论】:
-
很有可能由于内存不足而死亡。如果不了解模型、数据、使用的系统等细节,就不可能说更多。
-
请编辑问题以将其限制为具有足够详细信息的特定问题,以确定适当的答案。
标签: machine-learning jupyter-notebook