Closed ajaichemmanam closed 4 years ago
Following errors may occur if eager execution not enabled for TF <2.x Cannot convert a symbolic Tensor (Cast:0) to a numpy array or AttributeError: 'Tensor' object has no attribute 'numpy'
Use this code after importing tensorflow. tf.enable_eager_execution() or tf.compat.v1.enable_eager_execution() depending on tensorflow versions
Following errors may occur if eager execution not enabled for TF <2.x Cannot convert a symbolic Tensor (Cast:0) to a numpy array or AttributeError: 'Tensor' object has no attribute 'numpy'