Skip to content

Conversation

@tomtung
Copy link
Contributor

@tomtung tomtung commented Oct 10, 2017

Since it's now part of the library, I guess we have to polish it up properly then :)

pad_value=0,
name='average_embedding_layer',
embeddings_initializer=tf.random_uniform_initializer(-0.1, 0.1),
embeddings_kwargs={}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mutable default argument values are generally not a good idea. e.g. see here

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool, please also make sure the tutorial_imdb_fasttext.py can run well ~~

@zsdonghao zsdonghao merged commit 302a435 into tensorlayer:master Oct 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants