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

Function GenPoolingConf

examples/cpp/cifar10/cnn-parallel.cc:62–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60}
61
62LayerConf GenPoolingConf(string name, bool max_pool, int kernel, int stride,
63 int pad) {
64 LayerConf conf;
65 conf.set_name(name);
66 conf.set_type(engine + "_pooling");
67 PoolingConf *pool = conf.mutable_pooling_conf();
68 pool->set_kernel_size(kernel);
69 pool->set_stride(stride);
70 pool->set_pad(pad);
71 if (!max_pool) pool->set_pool(PoolingConf_PoolMethod_AVE);
72 return conf;
73}
74
75LayerConf GenReLUConf(string name) {
76 LayerConf conf;

Callers 1

CreateNetFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected