Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
gaoqiong
MIGraphX
Commits
2946e34e
Commit
2946e34e
authored
Nov 07, 2018
by
Scott Thornton
Browse files
Added return type needed for MacOSX
parent
7d972d2b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/onnx/onnx.cpp
src/onnx/onnx.cpp
+1
-1
No files found.
src/onnx/onnx.cpp
View file @
2946e34e
...
@@ -592,7 +592,7 @@ struct onnx_parser
...
@@ -592,7 +592,7 @@ struct onnx_parser
std
::
vector
<
std
::
size_t
>
dims
;
std
::
vector
<
std
::
size_t
>
dims
;
auto
&&
tensor_dims
=
t
.
tensor_type
().
shape
().
dim
();
auto
&&
tensor_dims
=
t
.
tensor_type
().
shape
().
dim
();
std
::
transform
(
std
::
transform
(
tensor_dims
.
begin
(),
tensor_dims
.
end
(),
std
::
back_inserter
(
dims
),
[](
auto
&&
d
)
{
tensor_dims
.
begin
(),
tensor_dims
.
end
(),
std
::
back_inserter
(
dims
),
[](
auto
&&
d
)
->
std
::
size_t
{
if
(
not
d
.
has_dim_value
())
if
(
not
d
.
has_dim_value
())
{
{
long
default_batch_size
=
1
;
// FIXME
long
default_batch_size
=
1
;
// FIXME
...
...
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