Creates a Dequantize OperatorT object.
| 52 | |
| 53 | // Creates a Dequantize OperatorT object. |
| 54 | void MakeDequantizeOperator(ModelT* model, std::unique_ptr<OperatorT>* op, |
| 55 | int32_t input, int32_t output) { |
| 56 | OperatorT* op_raw = new OperatorT; |
| 57 | // Version 2 and onwards supports INT8 inputs. |
| 58 | op_raw->opcode_index = |
| 59 | GetOrInsertOpCodeIndex(model, BuiltinOperator_DEQUANTIZE, 2); |
| 60 | op_raw->inputs = {input}; |
| 61 | op_raw->outputs = {output}; |
| 62 | |
| 63 | op->reset(op_raw); |
| 64 | } |
| 65 | |
| 66 | // Creates a Quantize OperatorT object. |
| 67 | void MakeQuantizeOperator(ModelT* model, std::unique_ptr<OperatorT>* op, |
no test coverage detected