We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 75ce434 commit f3a50e7Copy full SHA for f3a50e7
tensorflow_addons/layers/multihead_attention.py
@@ -14,6 +14,7 @@
14
# =============================================================================
15
16
import typing
17
+import warnings
18
19
import tensorflow as tf
20
@@ -100,6 +101,12 @@ def __init__(
100
101
bias_constraint: typing.Union[str, typing.Callable] = None,
102
**kwargs
103
):
104
+ warnings.warn(
105
+ "`MultiHeadAttention` will be deprecated in Addons 0.13. "
106
+ "Please use `tf.keras.layers.MultiHeadAttention` instead.",
107
+ DeprecationWarning,
108
+ )
109
+
110
super().__init__(**kwargs)
111
112
if output_size is not None and output_size < 1:
0 commit comments