报错解决:valueError: When using data tensors as input to a model, you should specify the steps_per_epoch argument.
晚上在使用tensorflow时报错如下:
File "C:\Users\peter\Anaconda3\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 786, in runfile
execfile(filename, namespace)
File "C:\Users\peter\Anaconda3\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line

在使用TensorFlow时遇到错误:valueError,提示在使用数据张量作为模型输入时需要指定steps_per_epoch参数。解决方法是在model.fit中添加steps_per_epoch=1。若此方法无效,可以尝试移除model.fit中的validation_data和validation_split选项。
最低0.47元/天 解锁文章
2019

被折叠的 条评论
为什么被折叠?



