提交 bb15de3b 编写于 作者: 李超

Merge branch 'fc' into 'master'

Fix caffe quantized fc

See merge request deep-computing/mace!1268
......@@ -1115,7 +1115,9 @@ class Transformer(base_converter.ConverterInterface):
if (op.type == MaceOp.Conv2D.name or
op.type == MaceOp.Deconv2D.name or
(op.type == MaceOp.DepthwiseConv2d.name and
self._option.device == DeviceType.APU.value)) and\
self._option.device == DeviceType.APU.value) or
(op.type == MaceOp.FullyConnected.name and
len(self._consts[op.input[1]].dims) == 4)) and \
op.input[1] not in transposed_filter:
filter = self._consts[op.input[1]]
filter_data = np.array(filter.float_data).reshape(
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册