From 9282db7414d7004f870397f30da04391e496c77a Mon Sep 17 00:00:00 2001 From: liukai6 Date: Tue, 26 Mar 2019 16:03:52 +0800 Subject: [PATCH] fix compatibility bug --- mace/python/tools/converter_tool/transformer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mace/python/tools/converter_tool/transformer.py b/mace/python/tools/converter_tool/transformer.py index d440eeaa..b52d4495 100644 --- a/mace/python/tools/converter_tool/transformer.py +++ b/mace/python/tools/converter_tool/transformer.py @@ -445,7 +445,7 @@ class Transformer(base_converter.ConverterInterface): gather_weights = self._consts[op.input[0]] mul_weight = ConverterUtil.get_arg(consumer_op, MaceKeyword.mace_scalar_input_str).f # noqa - gather_weights.float_data[:] = gather_weights.float_data * mul_weight # noqa + gather_weights.float_data[:] = [float_data * mul_weight for float_data in gather_weights.float_data] # noqa self.safe_remove_node(consumer_op, None, remove_input_tensor=True) -- GitLab