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
jerrrrry
infinicore
Commits
c2e368c6
Commit
c2e368c6
authored
Apr 29, 2025
by
zhangyue
Browse files
issue/207: revert rms_norm.py test cases
parent
81e426c4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
test/infiniop/rms_norm.py
test/infiniop/rms_norm.py
+4
-4
No files found.
test/infiniop/rms_norm.py
View file @
c2e368c6
...
...
@@ -27,17 +27,17 @@ _TEST_CASES = [
# y_shape, x_shape, w_shape, y_stride, x_stride, w_dtype
((
1
,
4
),
(
1
,
4
),
(
4
,),
None
,
None
,
torch
.
float32
),
((
16
,
2048
),
(
16
,
2048
),
(
2048
,),
None
,
None
,
torch
.
float32
),
#
((16, 2048), (16, 2048), (2048,), None, None, torch.float16),
((
16
,
2048
),
(
16
,
2048
),
(
2048
,),
None
,
None
,
torch
.
float16
),
((
16
,
2048
),
(
16
,
2048
),
(
2048
,),
(
4096
,
1
),
(
4096
,
1
),
torch
.
float32
),
#
((16, 2048), (16, 2048), (2048,), (4096, 1), (4096, 1), torch.float16),
((
16
,
2048
),
(
16
,
2048
),
(
2048
,),
(
4096
,
1
),
(
4096
,
1
),
torch
.
float16
),
]
# x types used for testing
_TENSOR_DTYPES
=
[
torch
.
float
32
]
_TENSOR_DTYPES
=
[
torch
.
float
16
]
# Tolerance map for different data types
_TOLERANCE_MAP
=
{
torch
.
float
32
:
{
"atol"
:
1e-3
,
"rtol"
:
1e-3
},
torch
.
float
16
:
{
"atol"
:
1e-3
,
"rtol"
:
1e-3
},
}
DEBUG
=
False
...
...
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