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

Method FindOp

tensorflow/lite/core/api/op_resolver_test.cc:43–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41class MockOpResolver : public OpResolver {
42 public:
43 const TfLiteRegistration* FindOp(BuiltinOperator op,
44 int version) const override {
45 if (op == BuiltinOperator_CONV_2D) {
46 static TfLiteRegistration r = {MockInit, MockFree, MockPrepare,
47 MockInvoke};
48 return &r;
49 } else {
50 return nullptr;
51 }
52 }
53 const TfLiteRegistration* FindOp(const char* op, int version) const override {
54 if (strcmp(op, "mock_custom") == 0) {
55 static TfLiteRegistration r = {MockInit, MockFree, MockPrepare,

Callers 2

TESTFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected