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
cedebc6c
"...composable_kernel.git" did not exist on "4382b4146923382c9e39e72fba99863f35f94a83"
Commit
cedebc6c
authored
Jul 17, 2019
by
Khalique
Browse files
formatting
parent
0d5a6cd0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
src/tf/tf.cpp
src/tf/tf.cpp
+3
-4
test/tf/tf_test.cpp
test/tf/tf_test.cpp
+1
-1
No files found.
src/tf/tf.cpp
View file @
cedebc6c
...
@@ -736,12 +736,11 @@ struct tf_parser
...
@@ -736,12 +736,11 @@ struct tf_parser
return
prog
.
add_instruction
(
op
,
make_contiguous
(
args
[
0
]));
return
prog
.
add_instruction
(
op
,
make_contiguous
(
args
[
0
]));
}
}
instruction_ref
parse_slice
(
const
std
::
string
&
,
instruction_ref
const
attribute_map
&
,
parse_slice
(
const
std
::
string
&
,
const
attribute_map
&
,
std
::
vector
<
instruction_ref
>
args
)
std
::
vector
<
instruction_ref
>
args
)
{
{
op
::
slice
op
;
op
::
slice
op
;
auto
starts
=
args
[
1
]
->
eval
().
get
<
int32_t
>
().
to_vector
();
auto
starts
=
args
[
1
]
->
eval
().
get
<
int32_t
>
().
to_vector
();
auto
size
=
args
[
2
]
->
eval
().
get
<
int32_t
>
().
to_vector
();
auto
size
=
args
[
2
]
->
eval
().
get
<
int32_t
>
().
to_vector
();
auto
axes
=
args
[
0
]
->
get_shape
().
lens
();
auto
axes
=
args
[
0
]
->
get_shape
().
lens
();
size_t
num_axes
=
axes
.
size
();
size_t
num_axes
=
axes
.
size
();
...
...
test/tf/tf_test.cpp
View file @
cedebc6c
...
@@ -355,7 +355,7 @@ TEST_CASE(slice_test)
...
@@ -355,7 +355,7 @@ TEST_CASE(slice_test)
{
{
migraphx
::
program
p
;
migraphx
::
program
p
;
std
::
size_t
num_axes
=
2
;
std
::
size_t
num_axes
=
2
;
auto
l0
=
p
.
add_parameter
(
"0"
,
migraphx
::
shape
{
migraphx
::
shape
::
float_type
,
{
5
,
10
}});
auto
l0
=
p
.
add_parameter
(
"0"
,
migraphx
::
shape
{
migraphx
::
shape
::
float_type
,
{
5
,
10
}});
migraphx
::
shape
s0
{
migraphx
::
shape
::
int32_type
,
{
num_axes
}};
migraphx
::
shape
s0
{
migraphx
::
shape
::
int32_type
,
{
num_axes
}};
p
.
add_literal
(
migraphx
::
literal
{
s0
,
{
1
,
0
}});
p
.
add_literal
(
migraphx
::
literal
{
s0
,
{
1
,
0
}});
p
.
add_literal
(
migraphx
::
literal
{
s0
,
{
2
,
-
1
}});
p
.
add_literal
(
migraphx
::
literal
{
s0
,
{
2
,
-
1
}});
...
...
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