Skip to content

Commit

Permalink
refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidLandup0 committed Aug 18, 2023
1 parent f882b3e commit ab10136
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion keras_cv/layers/hierarchical_transformer_encoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from keras_cv.layers.regularization.drop_path import DropPath


@keras.saving.register_keras_serializable(package="keras_cv")
@keras_cv_export("keras_cv.layers.HierarchicalTransformerEncoder")
class HierarchicalTransformerEncoder(keras.layers.Layer):
"""
Hierarchical transformer encoder block implementation as a Keras Layer.
Expand Down
2 changes: 1 addition & 1 deletion keras_cv/layers/overlapping_patching_embedding.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from keras_cv.backend import ops


@keras.saving.register_keras_serializable(package="keras_cv")
@keras_cv_export("keras_cv.layers.OverlappingPatchingAndEmbedding")
class OverlappingPatchingAndEmbedding(keras.layers.Layer):
def __init__(self, project_dim=32, patch_size=7, stride=4, **kwargs):
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from keras_cv.backend import ops


@keras.saving.register_keras_serializable(package="keras_cv")
@keras_cv_export("keras_cv.layers.SegFormerMultiheadAttention")
class SegFormerMultiheadAttention(keras.layers.Layer):
def __init__(self, project_dim, num_heads, sr_ratio):
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
from keras_cv.utils.python_utils import classproperty


@keras.saving.register_keras_serializable(package="keras_cv.models")
@keras_cv_export("keras_cv.layers.MiTBackbone")
class MiTBackbone(Backbone):
def __init__(
self,
Expand Down
2 changes: 1 addition & 1 deletion keras_cv/models/segmentation/segformer/segformer.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from keras_cv.utils.train import get_feature_extractor


@keras.utils.register_keras_serializable(package="keras_cv")
@keras_cv_export("keras_cv.layers.SegFormer")
class SegFormer(Task):
"""A Keras model implementing the SegFormer architecture for semantic
segmentation.
Expand Down

0 comments on commit ab10136

Please sign in to comment.