mirror of
https://github.com/huggingface/transformers.git
synced 2025-08-02 19:21:31 +06:00
Added type hints to TFDeiTModel (#22327)
* Added type hints to TFDeiTModel * make style --------- Co-authored-by: Matt <rocketknight1@gmail.com>
This commit is contained in:
parent
59b9351b78
commit
aef488c503
@ -665,11 +665,7 @@ class TFDeiTModel(TFDeiTPreTrainedModel):
|
||||
output_hidden_states: Optional[bool] = None,
|
||||
return_dict: Optional[bool] = None,
|
||||
training: bool = False,
|
||||
):
|
||||
r"""
|
||||
bool_masked_pos (`tf.Tensor` of shape `(batch_size, num_patches)`, *optional*):
|
||||
Boolean masked positions. Indicates which patches are masked (1) and which aren't (0).
|
||||
"""
|
||||
) -> Union[Tuple, TFBaseModelOutputWithPooling]:
|
||||
outputs = self.deit(
|
||||
pixel_values=pixel_values,
|
||||
bool_masked_pos=bool_masked_pos,
|
||||
|
Loading…
Reference in New Issue
Block a user