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

Method Init

tensorflow/lite/profiling/profile_summarizer_test.cc:89–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87};
88
89void SimpleOpModel::Init(
90 const std::function<TfLiteRegistration*()>& registration) {
91 inputs_[0] = AddInput({TensorType_INT32, {1}});
92 inputs_[1] = AddInput({TensorType_INT32, {1}});
93 output_ = AddOutput({TensorType_INT32, {}});
94 SetCustomOp(kOpName, {}, registration);
95 BuildInterpreter({GetShape(inputs_[0]), GetShape(inputs_[1])});
96}
97
98TEST(ProfileSummarizerTest, Empty) {
99 ProfileSummarizer summarizer;

Callers 1

TESTFunction · 0.45

Calls 3

AddOutputFunction · 0.85
AddInputFunction · 0.50
GetShapeFunction · 0.50

Tested by

no test coverage detected