AttributeError: module 'tensorflow' has no attribute 'compat' when loading tf.compat.v1.train.SessionRunHook

前端 未结 4 451
别跟我提以往
别跟我提以往 2020-12-31 11:46

I can see that this question has been asked before here tensorflow-has-no-attribute-compat

but the answer given was to

Microsoft Visual C++ 2015-2019 R         


        
4条回答
  •  萌比男神i
    2020-12-31 12:23

    This is usually caused by the broken TensorFlow-estimator module.

    simply do a

    pip install tensorflow-estimator==2.1.*
    

提交回复
热议问题