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
17ea590b
Commit
17ea590b
authored
Apr 10, 2019
by
Khalique
Browse files
formatting
parent
16973213
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
src/tf/tf.cpp
src/tf/tf.cpp
+2
-1
No files found.
src/tf/tf.cpp
View file @
17ea590b
...
@@ -366,7 +366,8 @@ struct tf_parser
...
@@ -366,7 +366,8 @@ struct tf_parser
size_t
input_size
=
args
.
front
()
->
get_shape
().
lens
().
size
();
size_t
input_size
=
args
.
front
()
->
get_shape
().
lens
().
size
();
if
(
axis
>
input_size
)
if
(
axis
>
input_size
)
{
{
MIGRAPHX_THROW
(
"TF_PARSER: axis value of "
+
to_string
(
axis
)
+
" must be smaller than input size "
+
to_string
(
input_size
));
MIGRAPHX_THROW
(
"TF_PARSER: axis value of "
+
to_string
(
axis
)
+
" must be smaller than input size "
+
to_string
(
input_size
));
}
}
// check if input arg needs axis to be converted to NCHW
// check if input arg needs axis to be converted to NCHW
if
(
input_size
>=
4
)
if
(
input_size
>=
4
)
...
...
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