image.png
    299行能替换为tf.shape(facts)[-1]吗?

    tf.shape(a)中a数据类型可以是tensor,list,array, 返回值为tensor。
    a.get_shape()中a的数据类型只能是tensor,返回值为TensorShape对象,再调用as_list()才能转换成列表。