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

Function TEST

tensorflow/lite/kernels/skip_gram_test.cc:65–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63};
64
65TEST(SkipGramTest, TestUnigram) {
66 SkipGramOp m(1, 0, false);
67
68 m.SetInput(kSentence);
69 m.Invoke();
70 EXPECT_THAT(m.GetOutput(), testing::UnorderedElementsAreArray(
71 {"The", "quick", "brown", "fox", "jumps",
72 "over", "the", "lazy", "dog!"}));
73}
74
75TEST(SkipGramTest, TestBigram) {
76 SkipGramOp m(2, 0, false);

Callers

nothing calls this directly

Calls 3

SetInputMethod · 0.45
InvokeMethod · 0.45
GetOutputMethod · 0.45

Tested by

no test coverage detected