-
Notifications
You must be signed in to change notification settings - Fork 65
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
Regularization causes error using mult gpu #22
Comments
This seems like a bug in Keras, there's really no reason this shouldn't work. |
Do you observe the same behavior or is it just my code, version etc.? |
Don't really have a setup to replicate this atm. I would try to create a reduced test case and file a bug against Keras; copying models the way I do should be fully supported. It sounds like a flaw in the conv2D regularizer. |
Hi, |
Maybe you can try the following code, there is only one dense layer and the slice lambda layer. This works even with single gpu,
|
Is it solved? |
Hi, when using
kernel_regularizer=regularizers.l2(0.00004)
, in conv2D layer i get „AttributeError: 'Model' object has no attribute '_losses'„ caused byoutputs = model(inputs)
that merges the outputs of the different splits in one model.The problem is that the regularizer waits for the loss but it is split over the sifferent models. Is it possible or even good to regularize batch wise?
The text was updated successfully, but these errors were encountered: