Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
13 changes: 13 additions & 0 deletions keras_hub/api/layers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,19 @@
from keras_hub.src.layers.modeling.cached_multi_head_attention import (
CachedMultiHeadAttention as CachedMultiHeadAttention,
)
from keras_hub.src.layers.modeling.dora_dense import DoRADense as DoRADense
from keras_hub.src.layers.modeling.dora_dense import (
convert_dense_to_dora as convert_dense_to_dora,
)
from keras_hub.src.layers.modeling.dora_embeddings import (
DoRAEmbedding as DoRAEmbedding,
)
from keras_hub.src.layers.modeling.dora_embeddings import (
DoRAPositionEmbedding as DoRAPositionEmbedding,
)
from keras_hub.src.layers.modeling.dora_embeddings import (
convert_embedding_to_dora as embedding_to_dora,
)
Comment on lines +25 to +27
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

For consistency with convert_dense_to_dora, it would be better to alias convert_embedding_to_dora to convert_embedding_to_dora instead of embedding_to_dora. This makes the public API more predictable and consistent.

Suggested change
from keras_hub.src.layers.modeling.dora_embeddings import (
convert_embedding_to_dora as embedding_to_dora,
)
from keras_hub.src.layers.modeling.dora_embeddings import (
convert_embedding_to_dora as convert_embedding_to_dora,
)

from keras_hub.src.layers.modeling.f_net_encoder import (
FNetEncoder as FNetEncoder,
)
Expand Down
Loading
Loading