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
734c00a6
"googlemock/vscode:/vscode.git/clone" did not exist on "900cc4bca597609ee09300d783ddf1bb1664f43a"
Commit
734c00a6
authored
Apr 25, 2025
by
Graylatzhou
Browse files
issue/183 添加fp32 tolerance
parent
46ee5b45
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
test/infiniop/mul.py
test/infiniop/mul.py
+3
-1
No files found.
test/infiniop/mul.py
View file @
734c00a6
...
...
@@ -62,9 +62,11 @@ _TENSOR_DTYPES = [torch.float16, torch.float32]
# Tolerance map for different data types
_TOLERANCE_MAP
=
{
torch
.
float16
:
{
"atol"
:
1e-4
,
"rtol"
:
1e-2
},
torch
.
float16
:
{
"atol"
:
1e-3
,
"rtol"
:
1e-3
},
torch
.
float32
:
{
"atol"
:
1e-7
,
"rtol"
:
1e-7
},
}
DEBUG
=
False
PROFILE
=
False
NUM_PRERUN
=
10
...
...
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