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
7e3444ce
Commit
7e3444ce
authored
Nov 20, 2023
by
Umang Yadav
Browse files
tidy fixes
parent
f550f814
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
10 deletions
+10
-10
test/verify/test_acosh.cpp
test/verify/test_acosh.cpp
+4
-4
test/verify/test_atanh.cpp
test/verify/test_atanh.cpp
+4
-4
test/verify/test_pow.cpp
test/verify/test_pow.cpp
+2
-2
No files found.
test/verify/test_acosh.cpp
View file @
7e3444ce
...
@@ -35,11 +35,11 @@ struct test_acosh : verify_program<test_acosh<CType>>
...
@@ -35,11 +35,11 @@ struct test_acosh : verify_program<test_acosh<CType>>
{
{
migraphx
::
program
p
;
migraphx
::
program
p
;
auto
*
mm
=
p
.
get_main_module
();
auto
*
mm
=
p
.
get_main_module
();
migraphx
::
shape
::
type_t
DT
ype
=
migraphx
::
shape
::
get_type
<
CType
>
();
migraphx
::
shape
::
type_t
dt
ype
=
migraphx
::
shape
::
get_type
<
CType
>
();
migraphx
::
shape
s
{
DT
ype
,
{
16
}};
migraphx
::
shape
s
{
dt
ype
,
{
16
}};
auto
x
=
mm
->
add_parameter
(
"x"
,
s
);
auto
x
=
mm
->
add_parameter
(
"x"
,
s
);
auto
min_val
=
mm
->
add_literal
(
migraphx
::
literal
{
migraphx
::
shape
{
DT
ype
},
{
1.1
}});
auto
min_val
=
mm
->
add_literal
(
migraphx
::
literal
{
migraphx
::
shape
{
dt
ype
},
{
1.1
}});
auto
max_val
=
mm
->
add_literal
(
migraphx
::
literal
{
migraphx
::
shape
{
DT
ype
},
{
100.0
}});
auto
max_val
=
mm
->
add_literal
(
migraphx
::
literal
{
migraphx
::
shape
{
dt
ype
},
{
100.0
}});
min_val
=
min_val
=
mm
->
add_instruction
(
migraphx
::
make_op
(
"multibroadcast"
,
{{
"out_lens"
,
{
16
}}}),
min_val
);
mm
->
add_instruction
(
migraphx
::
make_op
(
"multibroadcast"
,
{{
"out_lens"
,
{
16
}}}),
min_val
);
max_val
=
max_val
=
...
...
test/verify/test_atanh.cpp
View file @
7e3444ce
...
@@ -36,11 +36,11 @@ struct test_atanh : verify_program<test_atanh<CType>>
...
@@ -36,11 +36,11 @@ struct test_atanh : verify_program<test_atanh<CType>>
{
{
migraphx
::
program
p
;
migraphx
::
program
p
;
auto
*
mm
=
p
.
get_main_module
();
auto
*
mm
=
p
.
get_main_module
();
migraphx
::
shape
::
type_t
DT
ype
=
migraphx
::
shape
::
get_type
<
CType
>
();
migraphx
::
shape
::
type_t
dt
ype
=
migraphx
::
shape
::
get_type
<
CType
>
();
migraphx
::
shape
s
{
DT
ype
,
{
16
}};
migraphx
::
shape
s
{
dt
ype
,
{
16
}};
auto
x
=
mm
->
add_parameter
(
"x"
,
s
);
auto
x
=
mm
->
add_parameter
(
"x"
,
s
);
auto
min_val
=
mm
->
add_literal
(
migraphx
::
literal
{
migraphx
::
shape
{
DT
ype
},
{
-
0.95
f
}});
auto
min_val
=
mm
->
add_literal
(
migraphx
::
literal
{
migraphx
::
shape
{
dt
ype
},
{
-
0.95
f
}});
auto
max_val
=
mm
->
add_literal
(
migraphx
::
literal
{
migraphx
::
shape
{
DT
ype
},
{
0.95
f
}});
auto
max_val
=
mm
->
add_literal
(
migraphx
::
literal
{
migraphx
::
shape
{
dt
ype
},
{
0.95
f
}});
min_val
=
min_val
=
mm
->
add_instruction
(
migraphx
::
make_op
(
"multibroadcast"
,
{{
"out_lens"
,
{
16
}}}),
min_val
);
mm
->
add_instruction
(
migraphx
::
make_op
(
"multibroadcast"
,
{{
"out_lens"
,
{
16
}}}),
min_val
);
max_val
=
max_val
=
...
...
test/verify/test_pow.cpp
View file @
7e3444ce
...
@@ -33,9 +33,9 @@ struct test_pow : verify_program<test_pow<CType>>
...
@@ -33,9 +33,9 @@ struct test_pow : verify_program<test_pow<CType>>
migraphx
::
program
create_program
()
const
migraphx
::
program
create_program
()
const
{
{
migraphx
::
program
p
;
migraphx
::
program
p
;
migraphx
::
shape
::
type_t
DT
ype
=
migraphx
::
shape
::
get_type
<
CType
>
();
migraphx
::
shape
::
type_t
dt
ype
=
migraphx
::
shape
::
get_type
<
CType
>
();
auto
*
mm
=
p
.
get_main_module
();
auto
*
mm
=
p
.
get_main_module
();
migraphx
::
shape
s
{
DT
ype
,
{
6
}};
migraphx
::
shape
s
{
dt
ype
,
{
6
}};
std
::
vector
<
float
>
vec_e
(
s
.
elements
(),
2.0
f
);
std
::
vector
<
float
>
vec_e
(
s
.
elements
(),
2.0
f
);
auto
b
=
mm
->
add_parameter
(
"x"
,
s
);
auto
b
=
mm
->
add_parameter
(
"x"
,
s
);
auto
e
=
mm
->
add_literal
(
migraphx
::
literal
(
s
,
vec_e
));
auto
e
=
mm
->
add_literal
(
migraphx
::
literal
(
s
,
vec_e
));
...
...
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