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

Method MakeCancelNode

tensorflow/lite/interpreter_test.cc:1894–1900  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1892
1893 // Adds an CancelOp with input tensor `input` and output tensor `output`.
1894 void MakeCancelNode(int input, int output) {
1895 TfLiteRegistration op = CancelOpRegistration();
1896 ASSERT_EQ(interpreter_.AddNodeWithParameters({input}, {output}, nullptr, 0,
1897 nullptr, &op),
1898 kTfLiteOk);
1899 ASSERT_EQ(interpreter_.ResizeInputTensor(input, {3}), kTfLiteOk);
1900 }
1901
1902 // Adds an OkOp with input tensor `input` and output tensor `output`.
1903 void MakeOkNode(int input, int output) {

Callers

nothing calls this directly

Calls 2

AddNodeWithParametersMethod · 0.45
ResizeInputTensorMethod · 0.45

Tested by

no test coverage detected