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
gaoqiong
MIGraphX
Commits
4d380b67
Commit
4d380b67
authored
Sep 15, 2023
by
Umang Yadav
Browse files
change threshold
parent
2bdbed60
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
test/gpu/quantization.cpp
test/gpu/quantization.cpp
+1
-1
test/quantization.cpp
test/quantization.cpp
+1
-1
test/ref/rnn_ops.cpp
test/ref/rnn_ops.cpp
+1
-1
No files found.
test/gpu/quantization.cpp
View file @
4d380b67
...
@@ -118,7 +118,7 @@ TEST_CASE(int8_quantization)
...
@@ -118,7 +118,7 @@ TEST_CASE(int8_quantization)
// the regular pipeline uses the rewrite_quantization in the much
// the regular pipeline uses the rewrite_quantization in the much
// earlier stage.
// earlier stage.
if
(
migraphx
::
gpu
::
mlir_enabled
())
if
(
migraphx
::
gpu
::
mlir_enabled
())
EXPECT
(
migraphx
::
verify
::
verify_range
(
ref_result
,
gpu_result
,
0.01
19209
));
EXPECT
(
migraphx
::
verify
::
verify_range
(
ref_result
,
gpu_result
,
0.01
));
else
else
EXPECT
(
migraphx
::
verify
::
verify_range
(
ref_result
,
gpu_result
));
EXPECT
(
migraphx
::
verify
::
verify_range
(
ref_result
,
gpu_result
));
}
}
...
...
test/quantization.cpp
View file @
4d380b67
...
@@ -1077,7 +1077,7 @@ TEST_CASE(int8_quantization_dot)
...
@@ -1077,7 +1077,7 @@ TEST_CASE(int8_quantization_dot)
std
::
vector
<
float
>
no_quant_result
;
std
::
vector
<
float
>
no_quant_result
;
run_prog
(
p
,
ref_t
,
m
,
no_quant_result
);
run_prog
(
p
,
ref_t
,
m
,
no_quant_result
);
EXPECT
(
migraphx
::
verify
::
verify_range
(
quant_result
,
no_quant_result
,
0.003
576
));
EXPECT
(
migraphx
::
verify
::
verify_range
(
quant_result
,
no_quant_result
,
0.003
));
}
}
}
}
...
...
test/ref/rnn_ops.cpp
View file @
4d380b67
...
@@ -2983,7 +2983,7 @@ TEST_CASE(gru_fp16)
...
@@ -2983,7 +2983,7 @@ TEST_CASE(gru_fp16)
-
0.3969709
,
0.43360898
,
0.35775262
,
0.23280787
,
-
0.52179873
,
-
0.3969709
,
0.43360898
,
0.35775262
,
0.23280787
,
-
0.52179873
,
-
0.21944991
,
0.4535257
,
-
0.13735442
,
0.51757574
,
0.50380427
};
-
0.21944991
,
0.4535257
,
-
0.13735442
,
0.51757574
,
0.50380427
};
EXPECT
(
migraphx
::
verify
::
verify_range
(
hs_data
,
hs_data_gold
,
0.005
96
));
EXPECT
(
migraphx
::
verify
::
verify_range
(
hs_data
,
hs_data_gold
,
0.005
));
}
}
TEST_CASE
(
lstm_forward
)
TEST_CASE
(
lstm_forward
)
...
...
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