Tensorflow 张量流量化误差
当我的图形如下所示时,它将无法量化,错误信息为断言错误:无法量化类型为Tensorflow 张量流量化误差,tensorflow,quantization,Tensorflow,Quantization,当我的图形如下所示时,它将无法量化,错误信息为断言错误:无法量化类型为 x = tf.ones((1000,1),'int32') *ones = tf.ones((1, 100), "int32")* x = tf.reshape(x, shape=(-1,1)) 当我将graph更改为以下内容时,它会起作用: x = tf.ones((1000,1),'int32') ***ones = tf.ones((1, 100), "int32") ones = tf.reshape(ones,
x = tf.ones((1000,1),'int32')
*ones = tf.ones((1, 100), "int32")*
x = tf.reshape(x, shape=(-1,1))
当我将graph更改为以下内容时,它会起作用:
x = tf.ones((1000,1),'int32')
***ones = tf.ones((1, 100), "int32")
ones = tf.reshape(ones, shape=(1,-1))***
x = tf.reshape(x, shape=(-1,1))
你用什么命令来量化?你用什么命令来量化?