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

Function TEST

tensorflow/lite/mutable_op_resolver_test.cc:63–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61}
62
63TEST(MutableOpResolverTest, FinOp) {
64 MutableOpResolver resolver;
65 resolver.AddBuiltin(BuiltinOperator_ADD, GetDummyRegistration());
66
67 const TfLiteRegistration* found_registration =
68 resolver.FindOp(BuiltinOperator_ADD, 1);
69 ASSERT_NE(found_registration, nullptr);
70 EXPECT_TRUE(found_registration->invoke == DummyInvoke);
71 EXPECT_EQ(found_registration->builtin_code, BuiltinOperator_ADD);
72 EXPECT_EQ(found_registration->version, 1);
73}
74
75TEST(MutableOpResolverTest, FindMissingOp) {
76 MutableOpResolver resolver;

Callers

nothing calls this directly

Calls 6

GetDummy2RegistrationFunction · 0.85
AddAllMethod · 0.80
GetDummyRegistrationFunction · 0.70
AddBuiltinMethod · 0.45
FindOpMethod · 0.45
AddCustomMethod · 0.45

Tested by

no test coverage detected