Closed wilson-nunn closed 7 years ago
@wilson-nunn I've been trying to get things to work for both with some utility functions but haven't finished cleaning up the examples. Use the import from keras_adversarial.legacy import l1l2
. That is a function that will use l1l2
or L1L2
depending on the version of Keras installed.
I know your fix is much easier, but then I'm going to get all the Keras 1 people complaining.
Cheers
BTW, here's a link to the legacy functions:
https://github.com/bstriner/keras-adversarial/blob/master/keras_adversarial/legacy.py
With latest version of Keras in Python 3.6, cannot import l1l2 and needs to be L1L2 instead.