Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/tensorflow/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Tensorflow 张量流量化误差_Tensorflow_Quantization - Fatal编程技术网

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))

你用什么命令来量化?你用什么命令来量化?