| 70 | class PadV2OpConstModel : public PadOpModel<T1> { |
| 71 | public: |
| 72 | PadV2OpConstModel(const TensorData& input, |
| 73 | std::initializer_list<int> paddings_shape, |
| 74 | std::initializer_list<int> paddings, T1 constant_values, |
| 75 | const TensorData& output) { |
| 76 | this->input_ = this->AddInput(input); |
| 77 | this->paddings_ = |
| 78 | this->AddConstInput(TensorType_INT32, paddings, paddings_shape); |
| 79 | this->constant_values_ = |
| 80 | this->AddConstInput(GetTensorType<T1>(), {constant_values}, {1}); |
| 81 | |
| 82 | this->output_ = this->AddOutput(output); |
| 83 | |
| 84 | this->SetBuiltinOp(BuiltinOperator_PADV2, BuiltinOptions_PadV2Options, |
| 85 | CreatePadV2Options(this->builder_).Union()); |
| 86 | this->BuildInterpreter({input.shape}); |
| 87 | } |
| 88 | |
| 89 | PadV2OpConstModel(const TensorData& input, |
| 90 | std::initializer_list<int> paddings_shape, |
nothing calls this directly
no test coverage detected