报错:
NotImplementedError: Cannot convert a symbolic Tensor (functional_1/conv_/truediv:0) to a numpy arra
解决方法:
import tensorflow as tf
Test = tf.Variable(10, dtype=tf.int32)
with tf.compat.v1.Session() as sess:
sess.run(tf.compat.v1.global_variables_initializer())
nd_Test = sess.run(Test)
参考链接:https://blog.youkuaiyun.com/baidu_34638825/article/details/109535412