Skip to content

Commit

Permalink
Fix build errors with new keras-core version
Browse files Browse the repository at this point in the history
  • Loading branch information
mattdangerw committed Sep 18, 2023
1 parent 2707f90 commit 0f7cd8c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ def __init__(self, seed=None, **kwargs):
seed=seed, force_generator=force_generator
)
super().__init__(**kwargs)
self.built = True
self._convert_input_args = False

@property
Expand Down
3 changes: 2 additions & 1 deletion keras_cv/models/backbones/csp_darknet/csp_darknet_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,8 @@ def __init__(
)
)

self.add = keras.layers.Add()
if self.residual:
self.add = keras.layers.Add()
self.concatenate = keras.layers.Concatenate()

self.darknet_conv3 = DarknetConvBlock(
Expand Down

0 comments on commit 0f7cd8c

Please sign in to comment.