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

  // Make sure we can get the parameters successfully.
  BOOST_REQUIRE_EQUAL(layer.InSize(), 5);
  BOOST_REQUIRE_EQUAL(layer.Epsilon(), 1e-3);
}
/**
 * Test that the functions that can access the parameters of the
 * Layer Norm layer work.
 */
Test that the functions that can access the parameters of the
Layer Norm layer work.
Test that the functions that can access the parameters of the Layer Norm layer work .
BOOST_AUTO_TEST_CASE(LayerNormLayerParametersTest)
{
  LayerNorm<> layer(5, 1e-3);
  BOOST_REQUIRE_EQUAL(layer.InSize(), 5);
  BOOST_REQUIRE_EQUAL(layer.Epsilon(), 1e-3);
}
BOOST_AUTO_TEST_CASE ( LayerNormLayerParametersTest ) { LayerNorm < > layer ( 5 , 1e-3 ) ; BOOST_REQUIRE_EQUAL ( layer . InSize ( ) , 5 ) ; BOOST_REQUIRE_EQUAL ( layer . Epsilon ( ) , 1e-3 ) ; }
Test that the functions that can access the parameters of the
 Layer Norm layer work.
Test that the functions that can access the parameters of the Layer Norm layer work .
// Parameter order : size, eps. // Make sure we can get the parameters successfully.