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
b4a75da2
"...resnet50_onnxruntime.git" did not exist on "e866799b81b2ef3d4d49d995803d1a76474f3c4e"
Commit
b4a75da2
authored
Mar 09, 2019
by
Paul
Browse files
Formatting
parent
123af3eb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
test/schedule_test.cpp
test/schedule_test.cpp
+3
-3
No files found.
test/schedule_test.cpp
View file @
b4a75da2
...
@@ -131,7 +131,7 @@ struct schedule_model_test
...
@@ -131,7 +131,7 @@ struct schedule_model_test
}
}
std
::
size_t
weight
(
const
migraphx
::
operation
&
op
)
const
std
::
size_t
weight
(
const
migraphx
::
operation
&
op
)
const
{
{
if
(
op
.
name
()
==
"stream_free"
)
if
(
op
.
name
()
==
"stream_free"
)
return
0
;
return
0
;
else
if
(
op
.
name
()
==
"binary"
or
op
.
name
()
==
"unary"
)
else
if
(
op
.
name
()
==
"binary"
or
op
.
name
()
==
"unary"
)
return
4
;
return
4
;
...
@@ -282,8 +282,8 @@ TEST_CASE(zero_record)
...
@@ -282,8 +282,8 @@ TEST_CASE(zero_record)
auto
one
=
p
.
add_literal
(
1
);
auto
one
=
p
.
add_literal
(
1
);
auto
onep1
=
p
.
add_instruction
(
unary_op
{},
one
);
auto
onep1
=
p
.
add_instruction
(
unary_op
{},
one
);
auto
onep2
=
p
.
add_instruction
(
unary_op
{},
one
);
auto
onep2
=
p
.
add_instruction
(
unary_op
{},
one
);
auto
onei1
=
p
.
add_instruction
(
migraphx
::
op
::
identity
{},
onep1
);
auto
onei1
=
p
.
add_instruction
(
migraphx
::
op
::
identity
{},
onep1
);
auto
onei2
=
p
.
add_instruction
(
migraphx
::
op
::
identity
{},
onep2
);
auto
onei2
=
p
.
add_instruction
(
migraphx
::
op
::
identity
{},
onep2
);
auto
binary
=
p
.
add_instruction
(
nary_op
{},
onei1
,
onei2
);
auto
binary
=
p
.
add_instruction
(
nary_op
{},
onei1
,
onei2
);
p
.
compile
(
t
);
p
.
compile
(
t
);
EXPECT
(
not
t
.
has_stream
(
one
));
EXPECT
(
not
t
.
has_stream
(
one
));
...
...
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