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

Method MakeOkNode

tensorflow/lite/interpreter_test.cc:1903–1909  ·  view source on GitHub ↗

Adds an OkOp with input tensor `input` and output tensor `output`.

Source from the content-addressed store, hash-verified

1901
1902 // Adds an OkOp with input tensor `input` and output tensor `output`.
1903 void MakeOkNode(int input, int output) {
1904 TfLiteRegistration op = OkOpRegistration();
1905 ASSERT_EQ(interpreter_.AddNodeWithParameters({input}, {output}, nullptr, 0,
1906 nullptr, &op),
1907 kTfLiteOk);
1908 ASSERT_EQ(interpreter_.ResizeInputTensor(input, {3}), kTfLiteOk);
1909 }
1910
1911 Interpreter interpreter_;
1912

Callers

nothing calls this directly

Calls 2

AddNodeWithParametersMethod · 0.45
ResizeInputTensorMethod · 0.45

Tested by

no test coverage detected