Skip to content
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

[BREAKING CHANGE] deel-lip upgrade to Keras 3.0 #91

Open
wants to merge 44 commits into
base: keras3
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
1838266
fix(Keras3): layer.input.shape instead of layer.input_shape
cofri Aug 1, 2024
7bd62e3
fix(Keras 3): argument order changed in Layer.add_weight()
cofri Aug 1, 2024
c980436
fix (Keras 3): tf.Variable.read_value() was removed
cofri Aug 1, 2024
8cae0fc
fix (Keras 3): Reduction API removed, replaced with string
cofri Aug 1, 2024
72aca2f
fix(Keras 3): argument order changed in Loss.__init__()
cofri Aug 1, 2024
85bd915
fix(Keras 3): Input layer must have a shape as a tuple
cofri Aug 1, 2024
813b77d
fix(Keras 3): model.save() does not accept TF SavedModel format
cofri Aug 1, 2024
cef9657
fix(Keras 3): model.save(path) does not create path if not exist
cofri Aug 2, 2024
235a5ac
fix(Keras 3): Adam optimizer does not support `lr` argument anymore
cofri Aug 1, 2024
7faac08
fix(Keras 3): Conv2DTranspose has no arg `output_padding` anymore
cofri Aug 1, 2024
f166742
fix(Keras 3): argument order in Sequential
cofri Sep 9, 2024
ef426b8
feat(callbacks): upgrade to Keras 3
cofri Aug 6, 2024
51e8f28
feat(compute_layer_sv): upgrade to Keras 3
cofri Aug 6, 2024
21b02c6
feat(constraints): upgrade to Keras 3
cofri Aug 6, 2024
aecf96e
feat(initializers): upgrade to Keras 3
cofri Aug 6, 2024
730533d
feat(losses): upgrade to Keras 3
cofri Aug 6, 2024
a70137b
feat(metrics): upgrade to Keras 3
cofri Aug 6, 2024
7a9af98
feat(model): upgrade to Keras 3
cofri Aug 6, 2024
42bf583
feat(normalizers): upgrade to Keras 3
cofri Aug 6, 2024
f32b392
feat(regularizers): upgrade to Keras 3
cofri Aug 6, 2024
fbde10d
feat(utils): upgrade to Keras 3
cofri Aug 6, 2024
36bd039
feat(activations): upgrade to Keras 3
cofri Aug 6, 2024
168ed33
feat(unconstrained): upgrade to Keras 3
cofri Aug 6, 2024
7a461fe
feat(pooling): upgrade to Keras 3
cofri Aug 6, 2024
d105cfa
feat(dense): upgrade to Keras 3
cofri Aug 7, 2024
e48ec06
feat(convolutional): upgrade to Keras 3
cofri Aug 7, 2024
e504dd8
feat(init): upgrade to Keras 3
cofri Aug 7, 2024
2f7b8d6
feat(test_activations): upgrade to Keras 3
cofri Aug 7, 2024
8b3a403
feat(test_compute_layer_sv): upgrade to Keras 3
cofri Aug 8, 2024
c096ce1
feat(test_condense): upgrade to Keras 3
cofri Aug 8, 2024
0f5ce8d
feat(test_initializers): upgrade to Keras 3
cofri Aug 8, 2024
708e2b0
feat(test_losses): upgrade to Keras 3
cofri Aug 8, 2024
4c73c9d
feat(test_metrics): upgrade to Keras 3
cofri Aug 8, 2024
9e8bbb1
feat(test_models): upgrade to Keras 3
cofri Aug 8, 2024
c8d3d15
feat(test_normalizers): upgrade to Keras 3
cofri Aug 8, 2024
ef6e0c1
feat(test_regularizers): upgrade to Keras 3
cofri Aug 8, 2024
99b2f96
feat(test_unconstrained_layers): upgrade to Keras 3
cofri Aug 8, 2024
cb764ed
feat(test_layers): upgrade to Keras 3
cofri Aug 8, 2024
0ce0a71
feat(layers): save/load own variables in dense and conv
cofri Aug 8, 2024
f0cd52d
feat(notebooks): upgrade to Keras 3
cofri Sep 6, 2024
e697bbb
chore: enforce TF>=2.16 and Keras 3
cofri Aug 8, 2024
b462401
chore: bump to deel-lip version 2.0.0
cofri Aug 8, 2024
ce88cc1
chore: clean github actions to latest Python and TF versions
cofri Sep 6, 2024
ed92ee3
fix(callbacks): Keras SVD op is not as expected
cofri Sep 6, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix(Keras 3): argument order in Sequential
In Keras 2, arguments of keras.Sequential() were "layers" and "name".
In Keras 3, there is a new argument in second position: "layers", "trainable"
and "name".

To avoid confusion, we use keyword arguments.
  • Loading branch information
cofri committed Sep 9, 2024
commit f16674298a4b836ea7a502620d0c69ef8d812124
2 changes: 1 addition & 1 deletion deel/lip/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def __init__(
k_coef_lip (float): the Lipschitz coefficient to ensure globally on the
model.
"""
super(Sequential, self).__init__(layers, name)
super(Sequential, self).__init__(layers=layers, name=name)
self.set_klip_factor(k_coef_lip)

def build(self, input_shape=None):
Expand Down