Skip to content

Commit

Permalink
fix: add MultiHeadAttention's __call__ to the stubtest allowlist
Browse files Browse the repository at this point in the history
  • Loading branch information
hoel-bagard committed Jan 31, 2024
1 parent 6e26f9b commit 35e3b72
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions stubs/tensorflow/@tests/stubtest_allowlist.txt
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ tensorflow.keras.layers.*.__init__
tensorflow.keras.layers.*.call
tensorflow.keras.regularizers.Regularizer.__call__
tensorflow.keras.constraints.Constraint.__call__
tensorflow.keras.layers.MultiHeadAttention.__call__
tensorflow.keras.layers.MultiHeadAttention.call

# Layer class does good deal of __new__ magic and actually returns one of two different internal
# types depending on tensorflow execution mode. This feels like implementation internal.
Expand Down
2 changes: 1 addition & 1 deletion stubs/tensorflow/tensorflow/keras/layers/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ from typing_extensions import Self, TypeAlias

import tensorflow as tf
from tensorflow import Tensor, Variable, VariableAggregation, VariableSynchronization
from tensorflow._aliases import AnyArray, TensorLike, TensorCompatible, DTypeLike
from tensorflow._aliases import AnyArray, DTypeLike, TensorCompatible, TensorLike
from tensorflow.keras.activations import _Activation
from tensorflow.keras.constraints import Constraint
from tensorflow.keras.initializers import _Initializer
Expand Down

0 comments on commit 35e3b72

Please sign in to comment.