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

Function TEST_F

tensorflow/lite/kernels/subgraph_test_util_test.cc:65–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63};
64
65TEST_F(SubgraphBuilderTest, TestBuildAddSubgraph) {
66 builder_->BuildAddSubgraph(&interpreter_->primary_subgraph());
67
68 interpreter_->ResizeInputTensor(interpreter_->inputs()[0], {2});
69 interpreter_->ResizeInputTensor(interpreter_->inputs()[1], {1, 2});
70 ASSERT_EQ(interpreter_->AllocateTensors(), kTfLiteOk);
71
72 FillIntTensor(interpreter_->tensor(interpreter_->inputs()[0]), {5, 7});
73 FillIntTensor(interpreter_->tensor(interpreter_->inputs()[1]), {1, 2});
74 ASSERT_EQ(interpreter_->Invoke(), kTfLiteOk);
75
76 TfLiteTensor* output = interpreter_->tensor(interpreter_->outputs()[0]);
77 CheckIntTensor(output, {1, 2}, {6, 9});
78}
79
80TEST_F(SubgraphBuilderTest, TestBuildMulSubgraph) {
81 builder_->BuildMulSubgraph(&interpreter_->primary_subgraph());

Callers

nothing calls this directly

Calls 15

FillIntTensorFunction · 0.85
CheckIntTensorFunction · 0.85
IsDynamicTensorFunction · 0.85
CheckBoolTensorFunction · 0.85
BuildAddSubgraphMethod · 0.80
BuildMulSubgraphMethod · 0.80
BuildPadSubgraphMethod · 0.80
ResizeInputTensorMethod · 0.45
inputsMethod · 0.45
AllocateTensorsMethod · 0.45

Tested by

no test coverage detected