MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / PadOpDynamicModel

Method PadOpDynamicModel

tensorflow/lite/kernels/pad_test.cc:172–183  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

170class 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

Callers

nothing calls this directly

Calls 7

CreatePadOptionsFunction · 0.85
AddNullInputMethod · 0.80
SetBuiltinOpMethod · 0.80
BuildInterpreterMethod · 0.80
AddInputMethod · 0.45
AddOutputMethod · 0.45
UnionMethod · 0.45

Tested by

no test coverage detected