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

Function TEST

tensorflow/compiler/xla/window_util_test.cc:25–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23using ::testing::ElementsAre;
24
25TEST(WindowUtilTest, HasOverlappingWindowTest) {
26 // MakeWindow() set a stride of 1 by default.
27 EXPECT_FALSE(
28 window_util::HasOverlappingWindow(window_util::MakeWindow({1, 1})));
29 EXPECT_TRUE(
30 window_util::HasOverlappingWindow(window_util::MakeWindow({2, 2, 2, 2})));
31}
32
33TEST(WindowUtilTest, MakeWindowStrideTest) {
34 // MakeWindow() set a stride of 1 by default.

Callers

nothing calls this directly

Calls 5

HasOverlappingWindowFunction · 0.85
MakeWindowFunction · 0.85
sizeMethod · 0.45
dimensionsMethod · 0.45
strideMethod · 0.45

Tested by

no test coverage detected