出错代码 tf.convert_to_tensor(inputs.shape[0], dtype=tf.float32) 解决方法 tf.convert_to_tensor(inputs.shape[0].value, dtype=tf.float32)