Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tic
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wenyuanbo
tic
Commits
c7474c00
Commit
c7474c00
authored
May 22, 2018
by
Siva
Committed by
Tianqi Chen
May 29, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup of '-Wsign-compare' warnnigs. (#504)
parent
71ffc2b6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
nnvm/src/top/tensor/matrix_op.cc
+2
-2
nnvm/src/top/tensor/reduce.cc
+1
-1
nnvm/src/top/tensor/transform.cc
+1
-1
No files found.
nnvm/src/top/tensor/matrix_op.cc
View file @
c7474c00
...
...
@@ -34,8 +34,8 @@ inline bool DotShape(const nnvm::NodeAttrs& attrs,
<<
"dot shape inconsistent: "
<<
lshape
<<
" X "
<<
rshape
;
TShape
oshape
(
lshape
.
ndim
()
+
rshape
.
ndim
()
-
2
);
for
(
in
t
i
=
0
;
i
<
lshape
.
ndim
()
-
1
;
i
++
)
oshape
[
i
]
=
lshape
[
i
];
for
(
in
t
i
=
1
;
i
<
rshape
.
ndim
();
i
++
)
oshape
[
i
+
lshape
.
ndim
()
-
2
]
=
rshape
[
i
];
for
(
uint32_
t
i
=
0
;
i
<
lshape
.
ndim
()
-
1
;
i
++
)
oshape
[
i
]
=
lshape
[
i
];
for
(
uint32_
t
i
=
1
;
i
<
rshape
.
ndim
();
i
++
)
oshape
[
i
+
lshape
.
ndim
()
-
2
]
=
rshape
[
i
];
NNVM_ASSIGN_OUTPUT_SHAPE
(
attrs
,
*
out_attrs
,
0
,
oshape
);
return
true
;
...
...
nnvm/src/top/tensor/reduce.cc
View file @
c7474c00
...
...
@@ -145,7 +145,7 @@ Example::
for
(
dim_t
i
=
0
;
i
<
param
.
axis
.
ndim
();
++
i
)
{
exclude_axis
.
insert
(
param
.
axis
[
i
]);
}
for
(
dim_t
i
=
0
;
i
<
inputs
[
0
].
ndim
(
);
++
i
)
{
for
(
dim_t
i
=
0
;
i
<
static_cast
<
int
>
(
inputs
[
0
].
ndim
()
);
++
i
)
{
if
(
exclude_axis
.
count
(
i
)
==
0
)
{
axis
.
push_back
(
make_const
(
Int
(
32
),
i
));
}
...
...
nnvm/src/top/tensor/transform.cc
View file @
c7474c00
...
...
@@ -760,7 +760,7 @@ inline bool TransposeCorrectLayout(const NodeAttrs& attrs,
}
else
{
CHECK_EQ
(
input
.
ndim
(),
param
.
axes
.
ndim
());
for
(
size_t
i
=
0
;
i
<
input
.
ndim
();
++
i
)
{
CHECK
(
param
.
axes
[
i
]
<
input
.
ndim
(
));
CHECK
(
param
.
axes
[
i
]
<
static_cast
<
int
>
(
input
.
ndim
()
));
new_layout
<<
input
.
at
(
param
.
axes
[
i
]);
}
}
...
...
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