Both inputs should be in int16 for MUL operator.

Some networks have one of inputs as a constant.
This commit is contained in:
Elena Zhelezina 2020-05-04 14:12:51 +01:00
parent e7b615dc2e
commit e5d5522d82

View File

@ -807,6 +807,7 @@ OperatorProperty GetOperatorProperty(const ModelT* model, int subgraph_index,
case BuiltinOperator_MUL: case BuiltinOperator_MUL:
property.inputs = {{0, {}}, {1, {}}}; property.inputs = {{0, {}}, {1, {}}};
property.outputs = {{0, {}}}; property.outputs = {{0, {}}};
property.quantize_input_as_activations = true;
property.version = 2; property.version = 2;
break; break;
case BuiltinOperator_PACK: case BuiltinOperator_PACK: