Skip to content

Commit

Permalink
Remove code related to deel-lip
Browse files Browse the repository at this point in the history
Deel-lip is not keras 3 ready and do not plan to do so soon.
Moreover a full refactoring of decomon is planned which should
make it easy to implement the decomon layer associated to a custom
layer (like deel.lip layers).
  • Loading branch information
nhuet committed Jan 12, 2024
1 parent 2de5abf commit 80cae61
Show file tree
Hide file tree
Showing 13 changed files with 22 additions and 887 deletions.
2 changes: 0 additions & 2 deletions src/decomon/backward_layers/convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,10 @@
import decomon.backward_layers.backward_layers
import decomon.backward_layers.backward_maxpooling
import decomon.backward_layers.backward_merge
import decomon.backward_layers.deel_lip
from decomon.backward_layers.core import BackwardLayer
from decomon.core import BoxDomain, ForwardMode, PerturbationDomain, Slope

_mapping_name2class: Dict[str, Any] = vars(decomon.backward_layers.backward_layers)
_mapping_name2class.update(vars(decomon.backward_layers.deel_lip))
_mapping_name2class.update(vars(decomon.backward_layers.backward_merge))
_mapping_name2class.update(vars(decomon.backward_layers.backward_maxpooling))

Expand Down
57 changes: 0 additions & 57 deletions src/decomon/backward_layers/deel_lip.py

This file was deleted.

2 changes: 0 additions & 2 deletions src/decomon/layers/convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import decomon.layers.decomon_layers
import decomon.layers.decomon_merge_layers
import decomon.layers.decomon_reshape
import decomon.layers.deel_lip
import decomon.layers.maxpooling
from decomon.core import BoxDomain, ForwardMode, PerturbationDomain, Slope, get_mode
from decomon.layers.core import DecomonLayer
Expand All @@ -15,7 +14,6 @@
_mapping_name2class = vars(decomon.layers.decomon_layers)
_mapping_name2class.update(vars(decomon.layers.decomon_merge_layers))
_mapping_name2class.update(vars(decomon.layers.decomon_reshape))
_mapping_name2class.update(vars(decomon.layers.deel_lip))
_mapping_name2class.update(vars(decomon.layers.maxpooling))


Expand Down
241 changes: 0 additions & 241 deletions src/decomon/layers/deel_lip.py

This file was deleted.

11 changes: 0 additions & 11 deletions src/decomon/models/convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
ConvertMethod,
FeedDirection,
check_model2convert_inputs,
convert_deellip_to_keras,
ensure_functional_model,
get_direction,
get_ibp_affine_from_method,
Expand Down Expand Up @@ -70,16 +69,6 @@ def split_activations_in_keras_model(
return _clone_keras_model(model=model, layer_fn=split_activation)


def convert_deellip_layers_in_keras_model(
model: Model,
) -> Model:
return _clone_keras_model(model=model, layer_fn=_convert_deellip_to_keras)


def _convert_deellip_to_keras(layer: Layer) -> List[Layer]:
return [convert_deellip_to_keras(layer=layer)]


def preprocess_keras_model(
model: Model,
) -> Model:
Expand Down
Loading

0 comments on commit 80cae61

Please sign in to comment.