| 44 | using BuiltinOperator::BuiltinOperator; |
| 45 | |
| 46 | flatbuffers::Offset<TfLiteOptions> WriteOptions( |
| 47 | const TocoOperator& op, |
| 48 | flatbuffers::FlatBufferBuilder* builder) const override { |
| 49 | auto padding = Padding::Serialize(op.padding.type); |
| 50 | auto activation_function = |
| 51 | ActivationFunction::Serialize(op.fused_activation_function); |
| 52 | return ::tflite::CreatePool2DOptions(*builder, padding, op.stride_width, |
| 53 | op.stride_height, op.kwidth, |
| 54 | op.kheight, activation_function); |
| 55 | } |
| 56 | |
| 57 | void ReadOptions(const TfLiteOptions& options, |
| 58 | TocoOperator* op) const override { |
nothing calls this directly
no test coverage detected