MCPcopy Create free account
hub / github.com/BVLC/caffe / ArgMaxLayerTest

Method ArgMaxLayerTest

src/caffe/test/test_argmax_layer.cpp:18–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16class ArgMaxLayerTest : public CPUDeviceTest<Dtype> {
17 protected:
18 ArgMaxLayerTest()
19 : blob_bottom_(new Blob<Dtype>(10, 10, 20, 20)),
20 blob_top_(new Blob<Dtype>()),
21 top_k_(5) {
22 Caffe::set_random_seed(1701);
23 // fill the values
24 FillerParameter filler_param;
25 GaussianFiller<Dtype> filler(filler_param);
26 filler.Fill(this->blob_bottom_);
27 blob_bottom_vec_.push_back(blob_bottom_);
28 blob_top_vec_.push_back(blob_top_);
29 }
30 virtual ~ArgMaxLayerTest() { delete blob_bottom_; delete blob_top_; }
31 Blob<Dtype>* const blob_bottom_;
32 Blob<Dtype>* const blob_top_;

Callers

nothing calls this directly

Calls 2

set_random_seedFunction · 0.85
FillMethod · 0.45

Tested by

no test coverage detected