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

Function TEST_F

tensorflow/lite/kernels/if_test.cc:53–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51};
52
53TEST_F(SimpleIfTest, TestIfTrue) {
54 interpreter_->typed_input_tensor<bool>(0)[0] = true;
55 ASSERT_EQ(interpreter_->Invoke(), kTfLiteOk);
56 TfLiteTensor* output = interpreter_->tensor(interpreter_->outputs()[0]);
57 CheckIntTensor(output, {1, 2}, {6, 9});
58}
59
60TEST_F(SimpleIfTest, TestIfFalse) {
61 interpreter_->typed_input_tensor<bool>(0)[0] = false;

Callers

nothing calls this directly

Calls 5

CheckIntTensorFunction · 0.85
IsDynamicTensorFunction · 0.85
InvokeMethod · 0.45
tensorMethod · 0.45
outputsMethod · 0.45

Tested by

no test coverage detected