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
27e52102
"lightx2v/deploy/vscode:/vscode.git/clone" did not exist on "85f29d720ecf23529ab50fcda72ceb22ec01245b"
Commit
27e52102
authored
Nov 16, 2018
by
Shucai Xiao
Browse files
Add the test example for sin operator.
parent
2f543d8e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
test/gpu/miopen.cpp
test/gpu/miopen.cpp
+13
-0
No files found.
test/gpu/miopen.cpp
View file @
27e52102
...
...
@@ -203,6 +203,18 @@ struct test_mul
}
};
struct
test_sin
{
migraphx
::
program
create_program
()
const
{
migraphx
::
program
p
;
migraphx
::
shape
s
{
migraphx
::
shape
::
float_type
,
{
10
}};
auto
x
=
p
.
add_parameter
(
"x"
,
s
);
p
.
add_instruction
(
migraphx
::
op
::
sin
{},
x
);
return
p
;
}
};
struct
test_scale
{
migraphx
::
program
create_program
()
const
...
...
@@ -843,6 +855,7 @@ int main()
verify_program
<
test_add
>
();
verify_program
<
test_add_half
>
();
verify_program
<
test_mul
>
();
verify_program
<
test_sin
>
();
verify_program
<
test_scale
>
();
verify_program
<
test_triadd
>
();
verify_program
<
test_triadd2
>
();
...
...
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