| 25 | using singa::Shape; |
| 26 | |
| 27 | TEST(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 | |
| 39 | void ForwardConcatRowTest(std::shared_ptr<singa::Device> dev) { |
| 40 | size_t a = 2u, b = 1u, c = 3u; |
nothing calls this directly
no test coverage detected