Skip to content

Instantly share code, notes, and snippets.

@slaterb1
Last active March 30, 2017 17:10
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 slaterb1/87d5e986f51ae09f07e3ff0df8916bf0 to your computer and use it in GitHub Desktop.
Save slaterb1/87d5e986f51ae09f07e3ff0df8916bf0 to your computer and use it in GitHub Desktop.
Example script that crashes during add() due to indexing a set (crashes before my bug fix)
from keras.layers import Input
from keras.models import Model
from keras.layers.merge import add
input1 = Input(batch_shape=(20,10,16))
input2 = Input(batch_shape=(20,10,16))
o = add([input1, input2])
model = Model([input1, input2], o)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment