Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

Argument constraints will be removed from Optimizer.get_updates() in Keras 2.0.7 #2

Open
bzamecnik opened this issue Aug 10, 2017 · 2 comments

Comments

@bzamecnik
Copy link
Collaborator

We call Optimizer.get_updates with self.constraints as an argument from overriden Model._make_train_function(). However, in master (that will be released in 2.0.7) this argument is removed. Although there's some legacy interface adaptor it fails with:

  File "keras/keras/engine/training.py", line 1412, in fit
    self._make_train_function()
  File "rossum-multi-gpu/data_parallel_model.py", line 161, in _make_train_function
    self.constraints,
AttributeError: 'DataParallelModel' object has no attribute 'constraints'
@freshmanfresh
Copy link

So,how to solve this problem? (with keras 2.0.8)

@nskplta
Copy link

nskplta commented Jun 21, 2018

Hi, any update on this?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants