Skip to content

Instantly share code, notes, and snippets.

@ali-mosavian
Last active August 6, 2019 09:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ali-mosavian/b2e84f65ef671176d1dc2cfa6d52aa78 to your computer and use it in GitHub Desktop.
Save ali-mosavian/b2e84f65ef671176d1dc2cfa6d52aa78 to your computer and use it in GitHub Desktop.
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