This repository has been archived by the owner on May 24, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 415
unrolled LSTM layer with batch BPTT #159
Open
xiw9
wants to merge
6
commits into
dmlc:master
Choose a base branch
from
xiw9:lstm
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -22,7 +22,7 @@ class AttachTxtIterator : public IIterator<DataBatch> { | |||
} | |||
virtual void SetParam(const char *name, const char *val) { | |||
base_->SetParam(name, val); | |||
if (!strcmp(name, "filename")) filename_ = val; | |||
if (!strcmp(name, "txtfilename")) filename_ = val; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
conflict between txt iter and csv iter
data = train
iter = csv
filename = "............"
has_header = 0
iter = attachtxt
txtfilename = "............."
iter = threadbuffer
buffer_size = 4
iter = end
xiw9
changed the title
unrolled LSTM layer with batched BPTT
unrolled LSTM layer with batch BPTT
May 21, 2015
Thanks for your PR. I am still working on general case of LSTM, which is able to run CNN + LSTM together. In that branch we have special text IO for sequence. However I still have some bug to fix. Do you have interest to work together on that branch? |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
An fast unrolled LSTM layer similar to BVLC/caffe#1873
Need 2 inputs,
The input sequence nodes_in[0] and the corresponding sequence label nodes_in[1].
nodes_in[0] size: [batch_size][1][1][input_width]
nodes_in[1] size: [batch_size][1][1][1]
Example config file: