Add type hints for several pytorch models (batch-4) (#25749)
* Add type hints for MGP STR model * Add missing type hints for plbart model * Add type hints for Pix2struct model * Add missing type hints to Rag model and tweak the docstring * Add missing type hints to Sam model * Add missing type hints to Swin2sr model * Fix a type hint for Pix2StructTextModel Co-authored-by: Matt <Rocketknight1@users.noreply.github.com> * Fix typo on Rag model docstring Co-authored-by: Matt <Rocketknight1@users.noreply.github.com> * Fix linter --------- Co-authored-by: Matt <Rocketknight1@users.noreply.github.com>
This commit is contained in:
@@ -1296,7 +1296,7 @@ class SamModel(SamPreTrainedModel):
|
||||
target_embedding: Optional[torch.FloatTensor] = None,
|
||||
output_attentions: Optional[bool] = None,
|
||||
output_hidden_states: Optional[bool] = None,
|
||||
return_dict=None,
|
||||
return_dict: Optional[bool] = None,
|
||||
**kwargs,
|
||||
) -> List[Dict[str, torch.Tensor]]:
|
||||
r"""
|
||||
|
||||
Reference in New Issue
Block a user