日常踩坑:odule ‘tensorflow‘ has no attribute ‘placeholder‘解决方案
出现错误odule 'tensorflow' has no attribute 'placeholder'我还以为是我电脑没有独显导致的,后来一看是tensorflow的版本问题解决方案把import tensorflow as tf 改成:import tensorflow.compat.v1 as tftf.disable_v2_behavior()不用管报错 直接运行即可;运行是没问题的...