// TODO Should move to the place where the operand is handled, if it is possible.
// Set Shape Constraints and TensorInfo
- _builder.addShapeConstr(ofm_index, asTensorInfo(ofm_shape, _ctx.at(ofm_index).type()));
- _builder.addShapeConstr(ifm_index, asTensorInfo(ifm_shape, _ctx.at(ifm_index).type()));
- _builder.addShapeConstr(ker_index, asTensorInfo(ker_shape, _ctx.at(ker_index).type()));
- _builder.addShapeConstr(bias_index, asTensorInfo(bias_size, _ctx.at(bias_index).type()));
+ _builder.addShapeConstr(ofm_index,
+ asTensorInfo(ofm_shape, _ctx.at(ofm_index).type(),
+ _ctx.at(ofm_index).scale(), _ctx.at(ofm_index).zeroPoint()));
+ _builder.addShapeConstr(ifm_index,
+ asTensorInfo(ifm_shape, _ctx.at(ifm_index).type(),
+ _ctx.at(ifm_index).scale(), _ctx.at(ifm_index).zeroPoint()));
+ _builder.addShapeConstr(ker_index,
+ asTensorInfo(ker_shape, _ctx.at(ker_index).type(),
+ _ctx.at(ker_index).scale(), _ctx.at(ker_index).zeroPoint()));
+ _builder.addShapeConstr(bias_index, asTensorInfo(bias_size, _ctx.at(bias_index).type(),
+ _ctx.at(bias_index).scale(),
+ _ctx.at(bias_index).zeroPoint()));
// Set initializer for kernel
{
_builder.addInitializer(bias_index, initializer);
break;
}
- case ANEURALNETWORKS_TENSOR_QUANT8_ASYMM:
+ case ANEURALNETWORKS_TENSOR_INT32:
{
- auto initializer = std::bind(initVectorTensor<uint8_t>, _1, bias_base, bias_size);
+ auto initializer = std::bind(initVectorTensor<int32_t>, _1, bias_base, bias_size);
_builder.addInitializer(bias_index, initializer);
break;
}