MCPcopy Create free account
hub / github.com/ROCm/AMDMIGraphX / TEST_CASE

Function TEST_CASE

test/common_dims.cpp:29–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27using axes_map = std::vector<std::vector<std::size_t>>;
28
29TEST_CASE(common_d1_less)
30{
31 auto cd = migraphx::common_dims::compute({2, 32, 40, 8}, {2, 1280, 8});
32 EXPECT(cd.dims == std::vector<std::size_t>{2, 32, 40, 8});
33 EXPECT(cd.axes_map1 == axes_map{{0}, {1}, {2}, {3}});
34 EXPECT(cd.axes_map2 == axes_map{{0}, {1, 2}, {3}});
35}
36
37static void verify_common(const migraphx::common_dims& cd)
38{

Callers

nothing calls this directly

Calls 4

computeFunction · 0.85
verify_commonFunction · 0.85
get_dimensions_forMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected