Deep Learning

AttributeError: module 'tensorflow' has no attribute 'reset_default_graph'

olive's 2020. 4. 19. 10:53

error environment : python 3.7 + tensorflow 2.1

 

 

import tensorflow.compat.v1 as tf 

tf.disable_v2_behavior()

 

tf.reset_default_graph()