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
ad3c6d0d
Commit
ad3c6d0d
authored
Jul 10, 2019
by
Shucai Xiao
Browse files
remove required standard input for transpose
parent
58711bbc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
5 deletions
+1
-5
src/include/migraphx/op/transpose.hpp
src/include/migraphx/op/transpose.hpp
+1
-1
src/onnx/onnx.cpp
src/onnx/onnx.cpp
+0
-4
No files found.
src/include/migraphx/op/transpose.hpp
View file @
ad3c6d0d
...
...
@@ -29,7 +29,7 @@ struct transpose
std
::
string
name
()
const
{
return
"transpose"
;
}
shape
compute_shape
(
std
::
vector
<
shape
>
inputs
)
const
{
check_shapes
{
inputs
,
*
this
}.
has
(
1
)
.
standard
()
;
check_shapes
{
inputs
,
*
this
}.
has
(
1
);
auto
input
=
inputs
.
at
(
0
);
auto
input_lens
=
input
.
lens
();
auto
input_strides
=
input
.
strides
();
...
...
src/onnx/onnx.cpp
View file @
ad3c6d0d
...
...
@@ -846,10 +846,6 @@ struct onnx_parser
auto
&&
perm_vals
=
attributes
[
"perm"
].
ints
();
perm
=
std
::
vector
<
int64_t
>
(
perm_vals
.
begin
(),
perm_vals
.
end
());
}
if
(
!
args
.
front
()
->
get_shape
().
standard
())
{
args
.
front
()
=
prog
.
add_instruction
(
migraphx
::
op
::
contiguous
{},
args
.
front
());
}
return
prog
.
add_instruction
(
migraphx
::
op
::
transpose
{
perm
},
args
.
front
());
}
...
...
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