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
OpenDAS
apex
Commits
975a0e53
Commit
975a0e53
authored
Aug 09, 2022
by
hubertlu-tw
Browse files
Skip some flaky unit tests
parent
1b7b02ef
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
0 deletions
+3
-0
tests/L0/run_fused_layer_norm/test_fused_layer_norm.py
tests/L0/run_fused_layer_norm/test_fused_layer_norm.py
+1
-0
tests/L0/run_mlp/test_mlp.py
tests/L0/run_mlp/test_mlp.py
+2
-0
No files found.
tests/L0/run_fused_layer_norm/test_fused_layer_norm.py
View file @
975a0e53
...
@@ -180,6 +180,7 @@ class TestMixedFusedRMSNormElemWise(TestFusedRMSNorm):
...
@@ -180,6 +180,7 @@ class TestMixedFusedRMSNormElemWise(TestFusedRMSNorm):
elementwise_affine
=
True
elementwise_affine
=
True
mixed_fused
=
True
mixed_fused
=
True
@
skipFlakyTest
class
TestFusedRMSNormElemWiseHalf
(
TestFusedRMSNormElemWise
):
class
TestFusedRMSNormElemWiseHalf
(
TestFusedRMSNormElemWise
):
dtype
=
torch
.
half
dtype
=
torch
.
half
bwd_thresholds
=
dict
(
rtol
=
1.6e-2
,
atol
=
3e-3
)
bwd_thresholds
=
dict
(
rtol
=
1.6e-2
,
atol
=
3e-3
)
...
...
tests/L0/run_mlp/test_mlp.py
View file @
975a0e53
...
@@ -18,6 +18,7 @@ class TestMLP(unittest.TestCase):
...
@@ -18,6 +18,7 @@ class TestMLP(unittest.TestCase):
def
test_creation
(
self
):
def
test_creation
(
self
):
MLP
(
mlp_sizes
)
MLP
(
mlp_sizes
)
@
skipFlakyTest
def
test_numeric
(
self
):
def
test_numeric
(
self
):
mlp
=
MLP
(
mlp_sizes
).
cuda
()
mlp
=
MLP
(
mlp_sizes
).
cuda
()
...
@@ -52,6 +53,7 @@ class TestMLP(unittest.TestCase):
...
@@ -52,6 +53,7 @@ class TestMLP(unittest.TestCase):
ref_mlp
[
0
].
bias
.
grad
.
detach
().
cpu
().
numpy
(),
ref_mlp
[
0
].
bias
.
grad
.
detach
().
cpu
().
numpy
(),
atol
=
1e-7
,
rtol
=
1e-5
)
atol
=
1e-7
,
rtol
=
1e-5
)
@
skipFlakyTest
def
test_no_bias
(
self
):
def
test_no_bias
(
self
):
for
use_activation
in
[
'none'
,
'relu'
,
'sigmoid'
]:
for
use_activation
in
[
'none'
,
'relu'
,
'sigmoid'
]:
mlp
=
MLP
(
mlp_sizes
,
bias
=
False
,
activation
=
use_activation
).
cuda
()
mlp
=
MLP
(
mlp_sizes
,
bias
=
False
,
activation
=
use_activation
).
cuda
()
...
...
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