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
ea46e3fa
"git@developer.sourcefind.cn:chenpangpang/transformers.git" did not exist on "956a483173e77ebf655ca9636a5f7b6ef010b307"
Unverified
Commit
ea46e3fa
authored
Mar 12, 2021
by
Lysandre Debut
Committed by
GitHub
Mar 12, 2021
Browse files
Adjust loss difference (#10669)
parent
c526bde3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
tests/test_modeling_tf_mt5.py
tests/test_modeling_tf_mt5.py
+1
-1
No files found.
tests/test_modeling_tf_mt5.py
View file @
ea46e3fa
...
@@ -53,4 +53,4 @@ class TFMT5ModelIntegrationTest(unittest.TestCase):
...
@@ -53,4 +53,4 @@ class TFMT5ModelIntegrationTest(unittest.TestCase):
mtf_score
=
-
tf
.
math
.
reduce_sum
(
loss
).
numpy
()
mtf_score
=
-
tf
.
math
.
reduce_sum
(
loss
).
numpy
()
EXPECTED_SCORE
=
-
84.9127
EXPECTED_SCORE
=
-
84.9127
self
.
assertTrue
(
abs
(
mtf_score
-
EXPECTED_SCORE
)
<
1
e-4
)
self
.
assertTrue
(
abs
(
mtf_score
-
EXPECTED_SCORE
)
<
2
e-4
)
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