| 115 | } |
| 116 | |
| 117 | bool HasMinMax(const TensorT* tensor) { |
| 118 | return tensor->quantization && !tensor->quantization->min.empty() && |
| 119 | !tensor->quantization->max.empty(); |
| 120 | } |
| 121 | |
| 122 | void SetOperatorCodeVersion(ModelT* model) { |
| 123 | for (int i = 0; i < model->operator_codes.size(); ++i) { |