请问一下运行google官方的bert模型(pycharm)出现这个问题怎么解决??
LiTOl.Mustspecily StCp
raise vaLue
File C:users1614511 anaconda3/tiblsite-packagestensorftow_es
super(TPUEstimator return self).train(
File C:users161451lanaconda3lliblsite-packagesltensorflow_es
raise VaLueError(
ValueError: Must specify V0. max_steps qiven:
“Devil组”引证GPT后的撰写:
可以尝试在代码中增加一个指定大于0的"max_steps"参数值的语句,例如:
# 增加一个指定大于0的max_steps参数值
train_spec = tf.estimator.TrainSpec(input_fn=train_input_fn, max_steps=10000)
# 训练模型
tf.estimator.train_and_evaluate(estimator, train_spec, eval_spec)
另外,还可以检查一下TensorFlow版本是否正确,或者是否正确安装了TensorFlow和BERT模型所需的其他依赖项。