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
d72c0e89
Commit
d72c0e89
authored
Nov 24, 2017
by
Benjamin Thomas Graham
Browse files
fix Torch SparseToDense
parent
13bdf051
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
Torch/C.lua
Torch/C.lua
+1
-1
Torch/SparseToDense.lua
Torch/SparseToDense.lua
+1
-1
No files found.
Torch/C.lua
View file @
d72c0e89
...
@@ -221,7 +221,7 @@ void scn_ARCH_REAL_DIMENSIONMaxPooling_updateGradInput(
...
@@ -221,7 +221,7 @@ void scn_ARCH_REAL_DIMENSIONMaxPooling_updateGradInput(
// SparseToDense
// SparseToDense
void scn_ARCH_REAL_DIMENSIONSparseToDense_updateOutput(
void scn_ARCH_REAL_DIMENSIONSparseToDense_updateOutput(
THLongTensor *inputSize, void **m, THTensor *input_features,
THLongTensor *inputSize, void **m, THTensor *input_features,
THTensor *output_features, THITensor *rulesBuffer);
THTensor *output_features, THITensor *rulesBuffer
, long nPlanes
);
void scn_ARCH_REAL_DIMENSIONSparseToDense_updateGradInput(
void scn_ARCH_REAL_DIMENSIONSparseToDense_updateGradInput(
THLongTensor *inputSize, void **m, THTensor *input_features,
THLongTensor *inputSize, void **m, THTensor *input_features,
THTensor *d_input_features, THTensor *d_output_features,
THTensor *d_input_features, THTensor *d_output_features,
...
...
Torch/SparseToDense.lua
View file @
d72c0e89
...
@@ -36,7 +36,7 @@ return function(sparseconvnet)
...
@@ -36,7 +36,7 @@ return function(sparseconvnet)
input
.
features
:
cdata
(),
input
.
features
:
cdata
(),
self
.
output
:
cdata
(),
self
.
output
:
cdata
(),
self
.
shared
.
rulesBuffer
and
self
.
shared
.
rulesBuffer
:
cdata
(),
self
.
shared
.
rulesBuffer
and
self
.
shared
.
rulesBuffer
:
cdata
(),
self
.
nPlanes
or
input
.
features
.
size
(
2
))
self
.
nPlanes
or
input
.
features
:
size
(
2
))
return
self
.
output
return
self
.
output
end
end
...
...
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