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
OpenDAS
SparseConvNet
Commits
fcc28e95
"git@developer.sourcefind.cn:OpenDAS/openpcdet.git" did not exist on "35df959bacdeb37718c60f36aafae30cbd5be090"
Commit
fcc28e95
authored
Aug 02, 2017
by
Ben Graham
Committed by
GitHub
Aug 02, 2017
Browse files
fix stride
parent
784994a5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
PyTorch/sparseconvnet/SCN/generic/CPU/SparseToDense.cpp
PyTorch/sparseconvnet/SCN/generic/CPU/SparseToDense.cpp
+2
-2
No files found.
PyTorch/sparseconvnet/SCN/generic/CPU/SparseToDense.cpp
View file @
fcc28e95
...
@@ -36,7 +36,7 @@ extern "C" void scn_DR_(SparseToDense_updateOutput)(THLongTensor *inputSize,
...
@@ -36,7 +36,7 @@ extern "C" void scn_DR_(SparseToDense_updateOutput)(THLongTensor *inputSize,
uInt
nHot
=
r
.
size
()
/
2
;
uInt
nHot
=
r
.
size
()
/
2
;
SparseToDense_ForwardPass
<
real
>
(
iF
,
oF
,
nPlanes
,
spatialVolume
,
&
r
[
0
],
SparseToDense_ForwardPass
<
real
>
(
iF
,
oF
,
nPlanes
,
spatialVolume
,
&
r
[
0
],
nHot
);
nHot
);
oF
+=
spatialVolume
;
oF
++
;
}
}
}
}
extern
"C"
void
scn_DR_
(
SparseToDense_updateGradInput
)(
extern
"C"
void
scn_DR_
(
SparseToDense_updateGradInput
)(
...
@@ -58,7 +58,7 @@ extern "C" void scn_DR_(SparseToDense_updateGradInput)(
...
@@ -58,7 +58,7 @@ extern "C" void scn_DR_(SparseToDense_updateGradInput)(
uInt
nHot
=
r
.
size
()
/
2
;
uInt
nHot
=
r
.
size
()
/
2
;
SparseToDense_BackwardPass
<
real
>
(
diF
,
doF
,
nPlanes
,
spatialVolume
,
&
r
[
0
],
SparseToDense_BackwardPass
<
real
>
(
diF
,
doF
,
nPlanes
,
spatialVolume
,
&
r
[
0
],
nHot
);
nHot
);
doF
+=
spatialVolume
;
doF
++
;
}
}
}
}
#endif
#endif
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