Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
04681c1d
"git@developer.sourcefind.cn:chenpangpang/transformers.git" did not exist on "4557a0dede92ce985576fac478b754d76bba3c18"
Unverified
Commit
04681c1d
authored
May 31, 2022
by
Ivan Gonzalez
Committed by
GitHub
May 31, 2022
Browse files
typo IBERT in __repr__ quant_mode (#17398)
fix #17397
parent
13fd6734
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/transformers/models/ibert/quant_modules.py
src/transformers/models/ibert/quant_modules.py
+1
-1
No files found.
src/transformers/models/ibert/quant_modules.py
View file @
04681c1d
...
@@ -150,7 +150,7 @@ class QuantAct(nn.Module):
...
@@ -150,7 +150,7 @@ class QuantAct(nn.Module):
def
__repr__
(
self
):
def
__repr__
(
self
):
return
(
return
(
f
"
{
self
.
__class__
.
__name__
}
(activation_bit=
{
self
.
activation_bit
}
, "
f
"
{
self
.
__class__
.
__name__
}
(activation_bit=
{
self
.
activation_bit
}
, "
f
"quant_mode:
{
self
.
activation_bit
}
, Act_min:
{
self
.
x_min
.
item
():.
2
f
}
, "
f
"quant_mode:
{
self
.
quant_mode
}
, Act_min:
{
self
.
x_min
.
item
():.
2
f
}
, "
f
"Act_max:
{
self
.
x_max
.
item
():.
2
f
}
)"
f
"Act_max:
{
self
.
x_max
.
item
():.
2
f
}
)"
)
)
...
...
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