Last active
June 10, 2016 20:22
-
-
Save bwallace/d5e3ece84ad34ffad1542db2f1765dff to your computer and use it in GitHub Desktop.
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
tokens_input = Input(name='input', shape=(None, max_doc_len, max_sent_len), dtype="int32") | |
x = Embedding(p.max_features, p.embedding_dims)(tokens_input) | |
model = Model(input=tokens_input, output=x) | |
model.summary() | |
''' | |
Layer (type) Output Shape Param # Connected to | |
==================================================================================================== | |
input (InputLayer) (None, None, 500, 500 | |
____________________________________________________________________________________________________ | |
embedding_11 (Embedding) (None, None, 200) 2000000 input[0][0] | |
==================================================================================================== | |
Total params: 2000000 | |
____________________________________________________________________________________________________ | |
''' | |
r = Reshape((max_doc_len, p.max_sent_len*embedding_dims))(x) | |
# TypeError: long() argument must be a string or a number, not 'NoneType' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment