Skip to content

Commit

Permalink
move layers to contrib
Browse files Browse the repository at this point in the history
  • Loading branch information
bethke committed Apr 30, 2018
1 parent 56b076e commit aef9789
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
Binary file removed core_models/memn2n_dialogue/memn2n_weights.npz
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
from ngraph.frontends.neon import (Layer, Tanh,
LSTM, Logistic)

from nlp_architect.layers.match_lstm import (
from nlp_architect.contrib.ngraph.match_lstm import (
MatchLSTMCell_withAttention,
unroll_with_attention,
AnswerPointer_withAttention,
Expand Down
10 changes: 5 additions & 5 deletions doc/source/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,11 @@ These are currently stored in the various models
nlp_architect.models.chunker_model.TimeDistributedRecurrentOutput
nlp_architect.models.chunker_model.TimeDistributedRecurrentLast
nlp_architect.models.chunker_model.TimeDistBiLSTM
nlp_architect.layers.match_lstm.MatchLSTMCell_withAttention
nlp_architect.layers.match_lstm.AnswerPointer_withAttention
nlp_architect.layers.match_lstm.Dropout_Modified
nlp_architect.layers.match_lstm.LookupTable
nlp_architect.layers.modified_lookup_table.ModifiedLookupTable
nlp_architect.contrib.ngraph.match_lstm.MatchLSTMCell_withAttention
nlp_architect.contrib.ngraph.match_lstm.AnswerPointer_withAttention
nlp_architect.contrib.ngraph.match_lstm.Dropout_Modified
nlp_architect.contrib.ngraph.match_lstm.LookupTable
nlp_architect.contrib.ngraph.modified_lookup_table.ModifiedLookupTable



Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion nlp_architect/models/kvmemn2n.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
from ngraph.frontends.neon import GaussianInit
from ngraph.frontends.neon.graph import SubGraph
from nlp_architect.utils.encodings import position_encoding
from nlp_architect.layers.modified_lookup_table import ModifiedLookupTable
from nlp_architect.contrib.ngraph.modified_lookup_table import ModifiedLookupTable


class KVMemN2N(Layer):
Expand Down
2 changes: 1 addition & 1 deletion nlp_architect/models/memn2n_dialogue.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
from ngraph.frontends.neon import Layer
from ngraph.frontends.neon import GaussianInit
from ngraph.frontends.neon.graph import SubGraph
from nlp_architect.layers.modified_lookup_table import ModifiedLookupTable
from nlp_architect.contrib.ngraph.modified_lookup_table import ModifiedLookupTable


class MemN2N_Dialog(Layer):
Expand Down
2 changes: 1 addition & 1 deletion nlp_architect/utils/encodings.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

def position_encoding(sentence_axis, embedding_axis):
"""
Position Encoding described in section 4.1 [1]
Position Encoding used by the end to end memory network algorithms
"""
sentence_size = sentence_axis.length
embedding_size = embedding_axis.length
Expand Down

0 comments on commit aef9789

Please sign in to comment.