File tree Expand file tree Collapse file tree 1 file changed +23
-23
lines changed
stubs/tensorflow/tensorflow/keras/layers Expand file tree Collapse file tree 1 file changed +23
-23
lines changed Original file line number Diff line number Diff line change @@ -277,29 +277,29 @@ class MultiHeadAttention(Layer[Any, tf.Tensor]):
277
277
dynamic : bool = False ,
278
278
name : str | None = None ,
279
279
) -> None : ...
280
- @overload
281
- def __call__ (
282
- self ,
283
- query : tf .Tensor ,
284
- value : tf .Tensor ,
285
- key : tf .Tensor | None ,
286
- attention_mask : tf .Tensor | None ,
287
- return_attention_scores : Literal [False ],
288
- training : bool ,
289
- use_causal_mask : bool ,
290
- ) -> tf .Tensor : ...
291
- @overload
292
- def __call__ (
293
- self ,
294
- query : tf .Tensor ,
295
- value : tf .Tensor ,
296
- key : tf .Tensor | None ,
297
- attention_mask : tf .Tensor | None ,
298
- return_attention_scores : Literal [True ],
299
- training : bool ,
300
- use_causal_mask : bool ,
301
- ) -> tuple [tf .Tensor , tf .Tensor ]: ...
302
- @overload
280
+ # @overload
281
+ # def __call__(
282
+ # self,
283
+ # query: tf.Tensor,
284
+ # value: tf.Tensor,
285
+ # key: tf.Tensor | None,
286
+ # attention_mask: tf.Tensor | None,
287
+ # return_attention_scores: Literal[False],
288
+ # training: bool,
289
+ # use_causal_mask: bool,
290
+ # ) -> tf.Tensor: ...
291
+ # @overload
292
+ # def __call__(
293
+ # self,
294
+ # query: tf.Tensor,
295
+ # value: tf.Tensor,
296
+ # key: tf.Tensor | None,
297
+ # attention_mask: tf.Tensor | None,
298
+ # return_attention_scores: Literal[True],
299
+ # training: bool,
300
+ # use_causal_mask: bool,
301
+ # ) -> tuple[tf.Tensor, tf.Tensor]: ...
302
+ # @overload
303
303
def __call__ (
304
304
self ,
305
305
query : tf .Tensor ,
You can’t perform that action at this time.
0 commit comments