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
f54dcb28
Commit
f54dcb28
authored
May 17, 2018
by
Paul
Browse files
Fix warning in read_onnx
parent
13251b94
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
frontend/onnx/read_onnx.cpp
frontend/onnx/read_onnx.cpp
+2
-0
No files found.
frontend/onnx/read_onnx.cpp
View file @
f54dcb28
...
@@ -210,6 +210,7 @@ struct onnx_parser
...
@@ -210,6 +210,7 @@ struct onnx_parser
case
onnx
::
AttributeProto
::
TENSORS
:
return
{};
case
onnx
::
AttributeProto
::
TENSORS
:
return
{};
case
onnx
::
AttributeProto
::
GRAPHS
:
return
{};
case
onnx
::
AttributeProto
::
GRAPHS
:
return
{};
}
}
RTG_THROW
(
"Invalid attribute type"
);
}
}
static
rtg
::
literal
parse_tensor
(
const
onnx
::
TensorProto
&
t
)
static
rtg
::
literal
parse_tensor
(
const
onnx
::
TensorProto
&
t
)
...
@@ -250,6 +251,7 @@ struct onnx_parser
...
@@ -250,6 +251,7 @@ struct onnx_parser
case
onnx
::
TensorProto
::
COMPLEX64
:
throw
std
::
runtime_error
(
""
);
case
onnx
::
TensorProto
::
COMPLEX64
:
throw
std
::
runtime_error
(
""
);
case
onnx
::
TensorProto
::
COMPLEX128
:
throw
std
::
runtime_error
(
""
);
case
onnx
::
TensorProto
::
COMPLEX128
:
throw
std
::
runtime_error
(
""
);
}
}
RTG_THROW
(
"Invalid tensor type"
);
}
}
static
rtg
::
shape
parse_type
(
const
onnx
::
TypeProto
&
t
)
static
rtg
::
shape
parse_type
(
const
onnx
::
TypeProto
&
t
)
...
...
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