| 25 | using singa::Dense; |
| 26 | using singa::Shape; |
| 27 | TEST(Dense, Setup) { |
| 28 | Dense dense; |
| 29 | // EXPECT_EQ("Dense", dense.layer_type()); |
| 30 | |
| 31 | singa::LayerConf conf; |
| 32 | singa::DenseConf *denseconf = conf.mutable_dense_conf(); |
| 33 | denseconf->set_num_output(3); |
| 34 | dense.Setup(Shape{2}, conf); |
| 35 | |
| 36 | EXPECT_EQ(3u, dense.num_output()); |
| 37 | EXPECT_EQ(2u, dense.num_input()); |
| 38 | } |
| 39 | #ifdef USE_CBLAS |
| 40 | TEST(Dense, ForwardCpp) { |
| 41 | Dense dense; |
nothing calls this directly
no test coverage detected