MCPcopy Create free account
hub / github.com/Samsung/ONE / TEST

Function TEST

compiler/record-minmax/tests/MinMaxComputer.test.cpp:27–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25using namespace record_minmax;
26
27TEST(MinMaxComputerTest, percentile)
28{
29 auto computer = make_percentile_computer(0.0, 100.0);
30
31 luci::CircleAdd node;
32 MinMaxVectors minmax;
33 {
34 minmax.min_vector = {1.0, 2.0, 3.0};
35 minmax.max_vector = {4.0, 5.0, 6.0};
36 }
37 std::unordered_map<const luci::CircleNode *, MinMaxVectors> min_max_map;
38 min_max_map.insert({&node, minmax});
39
40 computer->update_qparam(&min_max_map);
41
42 EXPECT_TRUE(node.quantparam() != nullptr);
43}
44
45TEST(MinMaxComputerTest, percentile_nullptr_NEG)
46{

Callers

nothing calls this directly

Calls 5

make_percentile_computerFunction · 0.85
make_moving_avg_computerFunction · 0.85
update_qparamMethod · 0.80
insertMethod · 0.45
quantparamMethod · 0.45

Tested by

no test coverage detected