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
1b33704e
Commit
1b33704e
authored
Jan 07, 2019
by
Paul
Browse files
Formatting
parent
b9e55afe
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
10 deletions
+16
-10
test/const_eval_test.cpp
test/const_eval_test.cpp
+16
-10
No files found.
test/const_eval_test.cpp
View file @
1b33704e
...
...
@@ -96,7 +96,9 @@ TEST_CASE(compute_op_c)
migraphx
::
operation
op
=
sum_op
{};
auto
one
=
migraphx
::
literal
{
1
}.
get_argument
();
auto
two
=
migraphx
::
literal
{
2
}.
get_argument
();
EXPECT
(
test
::
throws
([
&
]
{
op
.
compute
(
migraphx
::
shape
{
migraphx
::
shape
::
float_type
,
{
1
}},
{
one
,
two
});
}));
EXPECT
(
test
::
throws
([
&
]
{
op
.
compute
(
migraphx
::
shape
{
migraphx
::
shape
::
float_type
,
{
1
}},
{
one
,
two
});
}));
}
TEST_CASE
(
compute_nop_c
)
...
...
@@ -104,7 +106,9 @@ TEST_CASE(compute_nop_c)
migraphx
::
operation
op
=
non_computable_cf
{};
auto
one
=
migraphx
::
literal
{
1
}.
get_argument
();
auto
two
=
migraphx
::
literal
{
2
}.
get_argument
();
EXPECT
(
test
::
throws
([
&
]
{
op
.
compute
(
migraphx
::
shape
{
migraphx
::
shape
::
float_type
,
{
1
}},
{
one
,
two
});
}));
EXPECT
(
test
::
throws
([
&
]
{
op
.
compute
(
migraphx
::
shape
{
migraphx
::
shape
::
float_type
,
{
1
}},
{
one
,
two
});
}));
}
TEST_CASE
(
compute_nop_context
)
...
...
@@ -113,7 +117,9 @@ TEST_CASE(compute_nop_context)
auto
one
=
migraphx
::
literal
{
1
}.
get_argument
();
auto
two
=
migraphx
::
literal
{
2
}.
get_argument
();
migraphx
::
context
ctx
=
test_context
{};
EXPECT
(
test
::
throws
([
&
]
{
op
.
compute
(
ctx
,
migraphx
::
shape
{
migraphx
::
shape
::
float_type
,
{
1
}},
{
one
,
two
});
}));
EXPECT
(
test
::
throws
([
&
]
{
op
.
compute
(
ctx
,
migraphx
::
shape
{
migraphx
::
shape
::
float_type
,
{
1
}},
{
one
,
two
});
}));
}
int
main
(
int
argc
,
const
char
*
argv
[])
{
test
::
run
(
argc
,
argv
);
}
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