MCPcopy Create free account
hub / github.com/apache/singa / TEST

Function TEST

test/singa/test_concat.cc:27–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25using singa::Shape;
26
27TEST(Concat, Setup) {
28 Shape s1{2u, 3u};
29 Shape s2{1u, 3u};
30 singa::LayerConf conf;
31 conf.set_type("singa_concat");
32 conf.mutable_concat_conf()->set_axis(0);
33 singa::Concat layer;
34 layer.Setup({{3u}, {3u}}, conf);
35 auto s = layer.GetOutputSampleShape();
36 EXPECT_EQ(s[0], 3u);
37}
38
39void ForwardConcatRowTest(std::shared_ptr<singa::Device> dev) {
40 size_t a = 2u, b = 1u, c = 3u;

Callers

nothing calls this directly

Calls 6

ForwardConcatRowTestFunction · 0.85
ForwardConcatColumnTestFunction · 0.85
BackwardConcatRowTestFunction · 0.85
BackwardConcatColumnTestFunction · 0.85
SetupMethod · 0.45
GetOutputSampleShapeMethod · 0.45

Tested by

no test coverage detected