Last active
August 6, 2019 09:37
-
-
Save ali-mosavian/b2e84f65ef671176d1dc2cfa6d52aa78 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
x = SpatialDropout1D(rate=0.1)(input_i) | |
x = Bidirectional(CuDNNGRU(50, return_sequences=True))(x) | |
layer_outputs.append(x[:,-1,:]) # <- Not OK, | |
layer_outputs.append(GlobalAvgPool1D()(x)) # OK | |
layer_outputs.append(GlobalMaxPool1D()(x)) # OK |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment