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
renzhc
diffusers_dcu
Commits
2e980ac9
Unverified
Commit
2e980ac9
authored
Nov 10, 2022
by
Anton Lozhkov
Committed by
GitHub
Nov 10, 2022
Browse files
[Tests] Adjust TPU test values (#1233)
* [Tests] Adjust TPU test values * slow tests * remaining refs
parent
0feb21a1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
tests/test_scheduler_flax.py
tests/test_scheduler_flax.py
+5
-5
No files found.
tests/test_scheduler_flax.py
View file @
2e980ac9
...
@@ -859,7 +859,7 @@ class FlaxPNDMSchedulerTest(FlaxSchedulerCommonTest):
...
@@ -859,7 +859,7 @@ class FlaxPNDMSchedulerTest(FlaxSchedulerCommonTest):
result_mean
=
jnp
.
mean
(
jnp
.
abs
(
sample
))
result_mean
=
jnp
.
mean
(
jnp
.
abs
(
sample
))
if
jax_device
==
"tpu"
:
if
jax_device
==
"tpu"
:
assert
abs
(
result_sum
-
198.1
542
)
<
1e-2
assert
abs
(
result_sum
-
198.1
275
)
<
1e-2
assert
abs
(
result_mean
-
0.2580
)
<
1e-3
assert
abs
(
result_mean
-
0.2580
)
<
1e-3
else
:
else
:
assert
abs
(
result_sum
-
198.1318
)
<
1e-2
assert
abs
(
result_sum
-
198.1318
)
<
1e-2
...
@@ -872,8 +872,8 @@ class FlaxPNDMSchedulerTest(FlaxSchedulerCommonTest):
...
@@ -872,8 +872,8 @@ class FlaxPNDMSchedulerTest(FlaxSchedulerCommonTest):
result_mean
=
jnp
.
mean
(
jnp
.
abs
(
sample
))
result_mean
=
jnp
.
mean
(
jnp
.
abs
(
sample
))
if
jax_device
==
"tpu"
:
if
jax_device
==
"tpu"
:
assert
abs
(
result_sum
-
18
5.4352
)
<
1e-2
assert
abs
(
result_sum
-
18
6.83226
)
<
1e-2
assert
abs
(
result_mean
-
0.24
145
)
<
1e-3
assert
abs
(
result_mean
-
0.24
327
)
<
1e-3
else
:
else
:
assert
abs
(
result_sum
-
186.9466
)
<
1e-2
assert
abs
(
result_sum
-
186.9466
)
<
1e-2
assert
abs
(
result_mean
-
0.24342
)
<
1e-3
assert
abs
(
result_mean
-
0.24342
)
<
1e-3
...
@@ -885,8 +885,8 @@ class FlaxPNDMSchedulerTest(FlaxSchedulerCommonTest):
...
@@ -885,8 +885,8 @@ class FlaxPNDMSchedulerTest(FlaxSchedulerCommonTest):
result_mean
=
jnp
.
mean
(
jnp
.
abs
(
sample
))
result_mean
=
jnp
.
mean
(
jnp
.
abs
(
sample
))
if
jax_device
==
"tpu"
:
if
jax_device
==
"tpu"
:
assert
abs
(
result_sum
-
18
5.4352
)
<
1e-2
assert
abs
(
result_sum
-
18
6.83226
)
<
1e-2
assert
abs
(
result_mean
-
0.24
14
)
<
1e-3
assert
abs
(
result_mean
-
0.24
327
)
<
1e-3
else
:
else
:
assert
abs
(
result_sum
-
186.9482
)
<
1e-2
assert
abs
(
result_sum
-
186.9482
)
<
1e-2
assert
abs
(
result_mean
-
0.2434
)
<
1e-3
assert
abs
(
result_mean
-
0.2434
)
<
1e-3
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