ypeError: __init__() got an unexpected keyword argument 'shape'

采用TensorFlow支持通过tf.Graph函数来生成新的向量图,代码如下: import tensorflow as tf # a = tf.constant([1.0,2.0],name="a") # b = tf.constant([2.0,3.0],name="b") # result = a+b # print(a.graph is tf.get_default_graph())
相关文章
相关标签/搜索