Skip to content

Commit

Permalink
Move some layers to keras.layers.preprocessing
Browse files Browse the repository at this point in the history
  • Loading branch information
hoel-bagard committed Jan 28, 2024
1 parent 22c88bc commit 7e2db33
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion stubs/tensorflow/tensorflow/keras/layers/__init__.pyi
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from _typeshed import Incomplete
from collections.abc import Callable, Iterable, Mapping, Sequence
from typing import Any, Generic, Literal, TypeVar, overload
from typing_extensions import Self, TypeAlias
from typing_extensions import Self, TypeAlias, override

import tensorflow as tf
from tensorflow import Tensor, Variable, VariableAggregation, VariableSynchronization, _TensorCompatible
Expand Down Expand Up @@ -256,6 +256,7 @@ class DenseFeatures(Layer[Mapping[str, TensorLike], tf.Tensor]):
) -> None: ...

class MultiHeadAttention(Layer[Any, tf.Tensor]):
@override
def __init__(
self,
num_heads: int,
Expand Down

0 comments on commit 7e2db33

Please sign in to comment.