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
95ec8e51
"experiments/vscode:/vscode.git/clone" did not exist on "af98d725e8142054fd680ce0cfba9b27615f9d84"
Commit
95ec8e51
authored
Aug 10, 2018
by
Scott Thornton
Browse files
Formatting
parent
1110ef29
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/include/migraph/operators.hpp
src/include/migraph/operators.hpp
+2
-2
No files found.
src/include/migraph/operators.hpp
View file @
95ec8e51
...
...
@@ -427,11 +427,11 @@ struct flatten
shape
compute_shape
(
std
::
vector
<
shape
>
inputs
)
const
{
check_shapes
{
inputs
}.
has
(
1
);
if
(
axis
==
0
)
if
(
axis
==
0
)
{
return
{
inputs
.
at
(
0
).
type
(),
{
1
,
inputs
.
at
(
0
).
elements
()}};
}
if
(
axis
==
1
)
if
(
axis
==
1
)
{
return
{
inputs
.
at
(
0
).
type
(),
{
inputs
.
at
(
0
).
elements
(),
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