Skip to content

Commit

Permalink
Fix repo consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
sgugger committed Dec 5, 2022
1 parent 0911057 commit 6276b43
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/transformers/models/timesformer/modeling_timesformer.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,8 @@ def __init__(self, drop_prob: Optional[float] = None) -> None:
super().__init__()
self.drop_prob = drop_prob

def forward(self, x: torch.Tensor) -> torch.Tensor:
return drop_path(x, self.drop_prob, self.training)
def forward(self, hidden_states: torch.Tensor) -> torch.Tensor:
return drop_path(hidden_states, self.drop_prob, self.training)

def extra_repr(self) -> str:
return "p={}".format(self.drop_prob)
Expand Down

0 comments on commit 6276b43

Please sign in to comment.