如何切换到tf.train.MonitoredTrainingSession?

时间:2019-09-23 16:55:23

标签: python tensorflow

我是python和tensorflow的新手..我尝试训练模型但得到

WARNING:tensorflow:From train.py:102: Supervisor.__init__ (from 
tensorflow.python.training.supervisor) is deprecated and will be removed in a future version.
Instructions for updating:
Please switch to tf.train.MonitoredTrainingSession
WARNING:tensorflow:Issue encountered when serializing global_step.
Type is unsupported, or the types of the items don't match field type in CollectionDef. Note 
this is a warning and probably safe to ignore.
'Tensor' object has no attribute 'to_proto 

但是找不到切换方法。.切换是否有必要,还是只是警告?

0 个答案:

没有答案