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:
Batese2001 2023-03-23 11:31:32 -04:00 committed by GitHub
parent 59b9351b78
commit aef488c503
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,