| 170 | class PadOpDynamicModel : public PadOpModel<float> { |
| 171 | public: |
| 172 | PadOpDynamicModel(const TensorData& input, |
| 173 | std::initializer_list<int> paddings_shape, |
| 174 | const TensorData& output) { |
| 175 | this->input_ = this->AddInput(input); |
| 176 | this->paddings_ = this->AddInput(TensorType_INT32); |
| 177 | this->constant_values_ = this->AddNullInput(); |
| 178 | this->output_ = this->AddOutput(output); |
| 179 | |
| 180 | this->SetBuiltinOp(BuiltinOperator_PAD, BuiltinOptions_PadOptions, |
| 181 | CreatePadOptions(this->builder_).Union()); |
| 182 | this->BuildInterpreter({input.shape, paddings_shape}); |
| 183 | } |
| 184 | }; |
| 185 | |
| 186 | #ifdef GTEST_HAS_DEATH_TEST |
nothing calls this directly
no test coverage detected