-
Notifications
You must be signed in to change notification settings - Fork 345
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
modify dropoutnet in case of batch size mismatch #505
Merged
Merged
Changes from all commits
Commits
Show all changes
39 commits
Select commit
Hold shift + click to select a range
d39af13
fix bug of `package` syntax of backbone
yangxudong 8ee5af2
fix bug of `package` syntax of backbone
yangxudong 8593b79
add document and test cases of BST & DIN backbone model
yangxudong c8e1257
modify input layer to support reuse
yangxudong bab2cea
add support for contrastive learning
yangxudong bd6dbe8
modify document
yangxudong 670458e
add powerful support for contrastive learning
yangxudong a357cb9
add powerful support for contrastive learning
yangxudong 61e238f
modify document
yangxudong 4141461
modify document
yangxudong 02d4dce
fix bug of bst when output all token embedding
yangxudong 8672e47
add documents
yangxudong 5bbead1
decrease num_steps of test cases
yangxudong 5cec266
Merge branch 'master' of https://github.com/alibaba/EasyRec into bug_fix
yangxudong 798d72f
fix bug of NaN output of tf.norm
yangxudong a7cc673
Merge branch 'master' into bug_fix
yangxudong 5157f50
fix doc build problem
yangxudong 2ee7015
fix doc build problem
yangxudong 5cafa73
fix doc build problem
yangxudong ac9fb01
fix doc build problem
yangxudong 7e8fa34
Merge branch 'master' of https://github.com/alibaba/EasyRec into bug_fix
yangxudong 40ed612
Merge branch 'master' of https://github.com/alibaba/EasyRec into bug_fix
yangxudong 27c95df
fix doc build problem
yangxudong db73211
fix doc build problem
yangxudong 6ec43f7
fix bug of SENet when run with tf.distribute.MirroredStrategy
yangxudong 6b3eba8
fix bug of SENet when run with tf.distribute.MirroredStrategy
yangxudong 71d91eb
add test case
yangxudong 39d3c05
add test case
yangxudong 0d83b0b
add test case
yangxudong e524243
add test case
yangxudong 0557c9b
add test case
yangxudong 8572072
add LayerNormalization Layer
yangxudong 9da20c1
modify
yangxudong bbecebf
Merge branch 'master' into bug_fix
yangxudong ee8d9aa
fix bug of jrc loss when sample weight is a scalar
yangxudong 1dffb67
add documents
yangxudong 65b0d43
Merge branch 'master' into bug_fix
yangxudong 501139d
modify dropoutnet in case of batch size mismatch
yangxudong a139c02
modify dropoutnet in case of batch size mismatch
yangxudong File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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.
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.
Draw some random uniform numbers, then check them with keep_rate. Maybe it's simpler in this way to get bernoulli numbers?
mask = tf.random.uniform(shape=(20,)) < keep_rate
mask = tf.cast(mask, tf.int32)
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.
yeah! both do almost the same thing~
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.
I tested on higher version of tensorflow(2.18), below statement is not working, giving some error messages, maybe due to tf and numpy compatibility issue:
error msg:
AttributeError: module 'numpy.core.multiarray' has no attribute 'integer'