src/mlpack/tests/ann_layer_test.cpp
BOOST_AUTO_TEST_CASE(BatchNormLayerParametersTest)
{
  // Parameter order : size, eps.
  BatchNorm<> layer(7, 1e-3);

  // Make sure we can get the parameters successfully.
  BOOST_REQUIRE_EQUAL(layer.InputSize(), 7);
  BOOST_REQUIRE_EQUAL(layer.Epsilon(), 1e-3);
}
/**
 * Test that the functions that can access the parameters of the
 * Batch Norm layer work.
 */
Test that the functions that can access the parameters of the
Batch Norm layer work.
Test that the functions that can access the parameters of the Batch Norm layer work .
BOOST_AUTO_TEST_CASE(BatchNormLayerParametersTest)
{
  BatchNorm<> layer(7, 1e-3);
  BOOST_REQUIRE_EQUAL(layer.InputSize(), 7);
  BOOST_REQUIRE_EQUAL(layer.Epsilon(), 1e-3);
}
BOOST_AUTO_TEST_CASE ( BatchNormLayerParametersTest ) { BatchNorm < > layer ( 7 , 1e-3 ) ; BOOST_REQUIRE_EQUAL ( layer . InputSize ( ) , 7 ) ; BOOST_REQUIRE_EQUAL ( layer . Epsilon ( ) , 1e-3 ) ; }
Test that the functions that can access the parameters of the
 Batch Norm layer work.
Test that the functions that can access the parameters of the Batch Norm layer work .
// Parameter order : size, eps. // Make sure we can get the parameters successfully.