Skip to content

Commit

Permalink
Merge pull request BVLC#3 from m1lhaus/master
Browse files Browse the repository at this point in the history
Fixed test exec error: lrn_ristretto_layer.cpp:16] LRN layer only supports minifloat
  • Loading branch information
pmgysel committed Feb 25, 2018
2 parents e2eaff7 + 2684ffe commit 131b5b6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/caffe/test/test_layer_factory.cpp
Expand Up @@ -42,6 +42,9 @@ TYPED_TEST(LayerFactoryTest, TestCreateLayer) {
continue;
#endif // USE_LEVELDB
}
if (iter->first == "LRNRistretto") {
layer_param.mutable_quantization_param()->set_precision(caffe::QuantizationParameter_Precision_MINIFLOAT);
}
layer_param.set_type(iter->first);
layer = LayerRegistry<Dtype>::CreateLayer(layer_param);
EXPECT_EQ(iter->first, layer->type());
Expand Down

0 comments on commit 131b5b6

Please sign in to comment.