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
d7254a5e
Commit
d7254a5e
authored
Nov 30, 2018
by
Khalique
Browse files
fixed inclusion guards and cppcheck errors
parent
588cadf4
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
13 additions
and
13 deletions
+13
-13
src/onnx/onnx.cpp
src/onnx/onnx.cpp
+1
-1
src/targets/gpu/include/migraphx/gpu/abs.hpp
src/targets/gpu/include/migraphx/gpu/abs.hpp
+2
-2
src/targets/gpu/include/migraphx/gpu/device/max.hpp
src/targets/gpu/include/migraphx/gpu/device/max.hpp
+2
-2
src/targets/gpu/include/migraphx/gpu/device/min.hpp
src/targets/gpu/include/migraphx/gpu/device/min.hpp
+2
-2
src/targets/gpu/include/migraphx/gpu/elu.hpp
src/targets/gpu/include/migraphx/gpu/elu.hpp
+2
-2
src/targets/gpu/include/migraphx/gpu/sigmoid.hpp
src/targets/gpu/include/migraphx/gpu/sigmoid.hpp
+2
-2
src/targets/gpu/include/migraphx/gpu/tanh.hpp
src/targets/gpu/include/migraphx/gpu/tanh.hpp
+2
-2
No files found.
src/onnx/onnx.cpp
View file @
d7254a5e
...
...
@@ -683,7 +683,7 @@ struct onnx_parser
{
std
::
vector
<
std
::
size_t
>
dims
(
t
.
dims
().
begin
(),
t
.
dims
().
end
());
// in case of scalar constants in onnx file, use dims=1 to fill initializer data
if
(
dims
.
size
()
==
0
)
if
(
dims
.
empty
()
)
{
dims
=
{
1
};
}
...
...
src/targets/gpu/include/migraphx/gpu/abs.hpp
View file @
d7254a5e
#ifndef MIGRAPH_GUARD_RTGLIB_ABS_HPP
#define MIGRAPH_GUARD_RTGLIB_ABS_HPP
#ifndef MIGRAPH
X
_GUARD_RTGLIB_ABS_HPP
#define MIGRAPH
X
_GUARD_RTGLIB_ABS_HPP
#include <migraphx/gpu/lowering.hpp>
#include <migraphx/manage_ptr.hpp>
...
...
src/targets/gpu/include/migraphx/gpu/device/max.hpp
View file @
d7254a5e
#ifndef MIGRAPH_GUARD_RTGLIB_DEVICE_MAX_HPP
#define MIGRAPH_GUARD_RTGLIB_DEVICE_MAX_HPP
#ifndef MIGRAPH
X
_GUARD_RTGLIB_DEVICE_MAX_HPP
#define MIGRAPH
X
_GUARD_RTGLIB_DEVICE_MAX_HPP
#include <migraphx/argument.hpp>
#include <migraphx/config.hpp>
...
...
src/targets/gpu/include/migraphx/gpu/device/min.hpp
View file @
d7254a5e
#ifndef MIGRAPH_GUARD_RTGLIB_DEVICE_MIN_HPP
#define MIGRAPH_GUARD_RTGLIB_DEVICE_MIN_HPP
#ifndef MIGRAPH
X
_GUARD_RTGLIB_DEVICE_MIN_HPP
#define MIGRAPH
X
_GUARD_RTGLIB_DEVICE_MIN_HPP
#include <migraphx/argument.hpp>
#include <migraphx/config.hpp>
...
...
src/targets/gpu/include/migraphx/gpu/elu.hpp
View file @
d7254a5e
#ifndef MIGRAPH_GUARD_RTGLIB_ELU_HPP
#define MIGRAPH_GUARD_RTGLIB_ELU_HPP
#ifndef MIGRAPH
X
_GUARD_RTGLIB_ELU_HPP
#define MIGRAPH
X
_GUARD_RTGLIB_ELU_HPP
#include <migraphx/gpu/lowering.hpp>
#include <migraphx/manage_ptr.hpp>
...
...
src/targets/gpu/include/migraphx/gpu/sigmoid.hpp
View file @
d7254a5e
#ifndef MIGRAPH_GUARD_RTGLIB_SIGMOID_HPP
#define MIGRAPH_GUARD_RTGLIB_SIGMOID_HPP
#ifndef MIGRAPH
X
_GUARD_RTGLIB_SIGMOID_HPP
#define MIGRAPH
X
_GUARD_RTGLIB_SIGMOID_HPP
#include <migraphx/gpu/lowering.hpp>
#include <migraphx/manage_ptr.hpp>
...
...
src/targets/gpu/include/migraphx/gpu/tanh.hpp
View file @
d7254a5e
#ifndef MIGRAPH_GUARD_RTGLIB_TANH_HPP
#define MIGRAPH_GUARD_RTGLIB_TANH_HPP
#ifndef MIGRAPH
X
_GUARD_RTGLIB_TANH_HPP
#define MIGRAPH
X
_GUARD_RTGLIB_TANH_HPP
#include <migraphx/gpu/lowering.hpp>
#include <migraphx/manage_ptr.hpp>
...
...
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