Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

Commit

Permalink
vender lstm now not support reverse mode
Browse files Browse the repository at this point in the history
  • Loading branch information
cyj1986 committed Aug 1, 2018
1 parent 8e883be commit ff84ec5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions run.sh

This file was deleted.

2 changes: 1 addition & 1 deletion test/saber/cuda/test_saber_func_lstm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ void test_saber_lstm(int sequence_size = 2, int batch_size = 1, int word_size =

//std::vector<int> offsets = {0, 20,40, 65, 82, 101};
std::vector<int> offsets = {0, 3};
bool is_reverse = true;
bool is_reverse = false;
batch_size = offsets.size() - 1;
Shape input_shape(offsets[offsets.size() - 1], word_size, 1, 1);
Shape output_shape(offsets[offsets.size() - 1], hidden_size, 1, 1);
Expand Down

0 comments on commit ff84ec5

Please sign in to comment.