Unverified Commit aef488c5 authored by Batese2001's avatar Batese2001 Committed by GitHub
Browse files

Added type hints to TFDeiTModel (#22327)



* Added type hints to TFDeiTModel

* make style

---------
Co-authored-by: default avatarMatt <rocketknight1@gmail.com>
parent 59b9351b
...@@ -665,11 +665,7 @@ class TFDeiTModel(TFDeiTPreTrainedModel): ...@@ -665,11 +665,7 @@ class TFDeiTModel(TFDeiTPreTrainedModel):
output_hidden_states: Optional[bool] = None, output_hidden_states: Optional[bool] = None,
return_dict: Optional[bool] = None, return_dict: Optional[bool] = None,
training: bool = False, training: bool = False,
): ) -> Union[Tuple, TFBaseModelOutputWithPooling]:
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).
"""
outputs = self.deit( outputs = self.deit(
pixel_values=pixel_values, pixel_values=pixel_values,
bool_masked_pos=bool_masked_pos, bool_masked_pos=bool_masked_pos,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment