Skip to content

Commit

Permalink
Removing unused variables from GRU layer
Browse files Browse the repository at this point in the history
  • Loading branch information
sumedhghaisas committed Jun 23, 2017
1 parent bae4e0a commit e2f4bb2
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 24 deletions.
1 change: 0 additions & 1 deletion src/mlpack/methods/ann/layer/gru_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,6 @@ void GRU<InputDataType, OutputDataType>::ResetCell()

forwardStep = 0;
backwardStep = 0;
gradientStep = 0;
}

template<typename InputDataType, typename OutputDataType>
Expand Down
23 changes: 0 additions & 23 deletions src/mlpack/tests/recurrent_network_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -442,29 +442,6 @@ void ReberGrammarTestNetwork(bool embedded = false)
BOOST_REQUIRE_GE(successes, 1);
}

BOOST_AUTO_TEST_CASE(GRUForwardTest)
{
arma::Mat<char> transitions;
transitions << 'T' << 'P' << '1' << '2' << arma::endr
<< 'X' << 'S' << '3' << '1' << arma::endr
<< 'V' << 'T' << '4' << '2' << arma::endr
<< 'X' << 'S' << '2' << '5' << arma::endr
<< 'P' << 'V' << '3' << '5' << arma::endr
<< 'E' << 'E' << '0' << '0' << arma::endr;

std::string testReber = "BPTVVE";
arma::mat testInput;
arma::colvec translation;

for (size_t j = 0; j < testReber.length() - 1; j++)
{
ReberTranslation(testReber[j], translation);
testInput = arma::join_cols(testInput, translation);
}

GRU<> gru(14, 7, 4);
}

/**
* Train the specified networks on a Reber grammar dataset.
*/
Expand Down

0 comments on commit e2f4bb2

Please sign in to comment.