Keras: Lambda layer function with multiple parameters
Found the solution to the problem in this GitHub Pull Request. Using
y = Lambda(connection, arguments={'k':k})(x)
worked!
Just use
y = Lambda(connection)((x,k))
and then var[0], var[1] in connection method