Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
6276b437
Unverified
Commit
6276b437
authored
Dec 05, 2022
by
Sylvain Gugger
Browse files
Fix repo consistency
parent
09110577
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/transformers/models/timesformer/modeling_timesformer.py
src/transformers/models/timesformer/modeling_timesformer.py
+2
-2
No files found.
src/transformers/models/timesformer/modeling_timesformer.py
View file @
6276b437
...
@@ -181,8 +181,8 @@ class TimeSformerDropPath(nn.Module):
...
@@ -181,8 +181,8 @@ class TimeSformerDropPath(nn.Module):
super
().
__init__
()
super
().
__init__
()
self
.
drop_prob
=
drop_prob
self
.
drop_prob
=
drop_prob
def
forward
(
self
,
x
:
torch
.
Tensor
)
->
torch
.
Tensor
:
def
forward
(
self
,
hidden_states
:
torch
.
Tensor
)
->
torch
.
Tensor
:
return
drop_path
(
x
,
self
.
drop_prob
,
self
.
training
)
return
drop_path
(
hidden_states
,
self
.
drop_prob
,
self
.
training
)
def
extra_repr
(
self
)
->
str
:
def
extra_repr
(
self
)
->
str
:
return
"p={}"
.
format
(
self
.
drop_prob
)
return
"p={}"
.
format
(
self
.
drop_prob
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment