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

Function TEST

test/singa/test_dense.cc:27–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25using singa::Dense;
26using singa::Shape;
27TEST(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
40TEST(Dense, ForwardCpp) {
41 Dense dense;

Callers

nothing calls this directly

Calls 10

num_outputMethod · 0.80
num_inputMethod · 0.80
ToHostMethod · 0.80
SetupMethod · 0.45
CopyDataFromHostPtrMethod · 0.45
set_weightMethod · 0.45
set_biasMethod · 0.45
ForwardMethod · 0.45
SizeMethod · 0.45
BackwardMethod · 0.45

Tested by

no test coverage detected