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

前端 未结 4 462
别跟我提以往
别跟我提以往 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条回答
  •  南笙
    南笙 (楼主)
    2020-12-31 12:45

    Below solution worked for me. Reference

    First install Estimator=2.1 then the rest:

    conda remove tensorflow
    conda install tensorflow-estimator 2.1
    conda install tensorflow-gpu=2.1
    

提交回复
热议问题