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 52e0d83
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions stubs/tensorflow/tensorflow/keras/layers/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ class Dense(Layer[tf.Tensor, tf.Tensor]):
kernel_constraint: _Constraint = None,
bias_constraint: _Constraint = None,
trainable: bool = True,
dtype: _LayerDtype = None,
dtype: _LayerDtype | None = None,
dynamic: bool = False,
name: str | None = None,
) -> None: ...
Expand All @@ -151,7 +151,7 @@ class BatchNormalization(Layer[tf.Tensor, tf.Tensor]):
beta_constraint: _Constraint = None,
gamma_constraint: _Constraint = None,
trainable: bool = True,
dtype: _LayerDtype = None,
dtype: _LayerDtype | None = None,
dynamic: bool = False,
name: str | None = None,
) -> None: ...
Expand All @@ -163,7 +163,7 @@ class ReLU(Layer[tf.Tensor, tf.Tensor]):
negative_slope: float | None = 0.0,
threshold: float | None = 0.0,
trainable: bool = True,
dtype: _LayerDtype = None,
dtype: _LayerDtype | None = None,
dynamic: bool = False,
name: str | None = None,
) -> None: ...
Expand All @@ -175,7 +175,7 @@ class Dropout(Layer[tf.Tensor, tf.Tensor]):
noise_shape: _TensorCompatible | Sequence[int | None] | None = None,
seed: int | None = None,
trainable: bool = True,
dtype: _LayerDtype = None,
dtype: _LayerDtype | None = None,
dynamic: bool = False,
name: str | None = None,
) -> None: ...
Expand All @@ -191,7 +191,7 @@ class Embedding(Layer[tf.Tensor, tf.Tensor]):
mask_zero: bool = False,
input_length: int | None = None,
trainable: bool = True,
dtype: _LayerDtype = None,
dtype: _LayerDtype | None = None,
dynamic: bool = False,
name: str | None = None,
) -> None: ...
Expand All @@ -216,7 +216,7 @@ class Conv2D(Layer[tf.Tensor, tf.Tensor]):
kernel_constraint: _Constraint = None,
bias_constraint: _Constraint = None,
trainable: bool = True,
dtype: _LayerDtype = None,
dtype: _LayerDtype | None = None,
dynamic: bool = False,
name: str | None = None,
) -> None: ...
Expand All @@ -240,7 +240,7 @@ class LayerNormalization(Layer[tf.Tensor, tf.Tensor]):
beta_constraint: _Constraint = None,
gamma_constraint: _Constraint = None,
trainable: bool = True,
dtype: _LayerDtype = None,
dtype: _LayerDtype | None = None,
dynamic: bool = False,
name: str | None = None,
) -> None: ...
Expand Down Expand Up @@ -273,7 +273,7 @@ class MultiHeadAttention(Layer[Any, tf.Tensor]):
kernel_constraint: _Constraint | None = None,
bias_constraint: _Constraint | None = None,
trainable: bool = True,
dtype: _LayerDtype = None,
dtype: _LayerDtype | None = None,
dynamic: bool = False,
name: str | None = None,
) -> None: ...
Expand Down

0 comments on commit 52e0d83

Please sign in to comment.