unittest/lstm_test.cc
TEST_F(LSTMTrainerTest, SoftmaxTest) {
  // LSTM with a built-in softmax can beat the external softmax.
  SetupTrainerEng("[1,1,0,32 LS96]", "Lstm-+-softmax", false, true);
  double lstm_sm_err = TrainIterations(kTrainerIterations * 2);
  EXPECT_LT(lstm_sm_err, 49.0);
  LOG(INFO) << "********** Expected  < 49 ************\n";
  // Check that it works in int mode too.
  TestIntMode(kTrainerIterations);
}
// Tests that the built-in softmax does better than the external one,
// which has an error rate slightly less than 55%, as tested by
// SoftmaxBaselineTest.
Tests that the built-in softmax does better than the external one,
which has an error rate slightly less than 55%, as tested by
SoftmaxBaselineTest.
Tests that the built - in softmax does better than the external one which has an error rate slightly less than 55% as tested by SoftmaxBaselineTest .
TEST_F(LSTMTrainerTest, SoftmaxTest) {
  SetupTrainerEng("[1,1,0,32 LS96]", "Lstm-+-softmax", false, true);
  double lstm_sm_err = TrainIterations(kTrainerIterations * 2);
  EXPECT_LT(lstm_sm_err, 49.0);
  LOG(INFO) << "********** Expected  < 49 ************\n";
  TestIntMode(kTrainerIterations);
}
TEST_F ( LSTMTrainerTest , SoftmaxTest ) { SetupTrainerEng ( " " , " " , false , true ) ; double lstm_sm_err = TrainIterations ( kTrainerIterations * 2 ) ; EXPECT_LT ( lstm_sm_err , 49.0 ) ; LOG ( INFO ) << " \n " ; TestIntMode ( kTrainerIterations ) ; }
Tests that the built-in softmax does better than the external one,
which has an error rate slightly less than 55%, as tested by
SoftmaxBaselineTest.
Tests that the built - in softmax does better than the external one which has an error rate slightly less than 55% as tested by SoftmaxBaselineTest .
// LSTM with a built-in softmax can beat the external softmax. // Check that it works in int mode too.