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
67a5ba86
Commit
67a5ba86
authored
Nov 28, 2023
by
Umang Yadav
Browse files
small example for fp8 fail case
parent
22aadbd6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
test/verify/test_conv_bn.cpp
test/verify/test_conv_bn.cpp
+6
-5
No files found.
test/verify/test_conv_bn.cpp
View file @
67a5ba86
...
@@ -43,11 +43,12 @@ struct test_conv_bn : verify_program<test_conv_bn<DType>>
...
@@ -43,11 +43,12 @@ struct test_conv_bn : verify_program<test_conv_bn<DType>>
auto
x
=
mm
->
add_parameter
(
"x"
,
xs
);
auto
x
=
mm
->
add_parameter
(
"x"
,
xs
);
auto
w
=
mm
->
add_parameter
(
"w"
,
ws
);
auto
w
=
mm
->
add_parameter
(
"w"
,
ws
);
// non-symmetrical tiling
// non-symmetrical tiling
auto
conv
=
mm
->
add_instruction
(
// auto conv = mm->add_instruction(
migraphx
::
make_op
(
"convolution"
,
// migraphx::make_op("convolution",
{{
"padding"
,
{
3
,
3
}},
{
"stride"
,
{
2
,
2
}},
{
"dilation"
,
{
1
,
1
}}}),
// {{"padding", {3, 3}}, {"stride", {2, 2}}, {"dilation", {1, 1}}}),
x
,
// x,
w
);
// w);
auto
conv
=
mm
->
add_parameter
(
"conv"
,
migraphx
::
shape
{
DType
,
{
1
,
64
,
112
,
112
}});
auto
scale
=
mm
->
add_literal
(
migraphx
::
abs
(
migraphx
::
generate_literal
(
vars
,
1
)));
auto
scale
=
mm
->
add_literal
(
migraphx
::
abs
(
migraphx
::
generate_literal
(
vars
,
1
)));
auto
bias
=
mm
->
add_literal
(
migraphx
::
abs
(
migraphx
::
generate_literal
(
vars
,
2
)));
auto
bias
=
mm
->
add_literal
(
migraphx
::
abs
(
migraphx
::
generate_literal
(
vars
,
2
)));
...
...
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