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
f2e3800b
Unverified
Commit
f2e3800b
authored
Apr 07, 2018
by
Ben Graham
Committed by
GitHub
Apr 07, 2018
Browse files
Merge pull request #36 from elPistolero/set_locations_fix
remove overly strict assertion on features dimensionality
parents
cb129912
317c5086
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
1 deletion
+0
-1
PyTorch/sparseconvnet/SCN/generic/Geometry/Metadata.cpp
PyTorch/sparseconvnet/SCN/generic/Geometry/Metadata.cpp
+0
-1
No files found.
PyTorch/sparseconvnet/SCN/generic/Geometry/Metadata.cpp
View file @
f2e3800b
...
@@ -58,7 +58,6 @@ extern "C" void scn_D_(setInputSpatialLocations)(void **m,
...
@@ -58,7 +58,6 @@ extern "C" void scn_D_(setInputSpatialLocations)(void **m,
THLongTensor
*
locations
,
THLongTensor
*
locations
,
THFloatTensor
*
vecs
,
THFloatTensor
*
vecs
,
bool
overwrite
)
{
bool
overwrite
)
{
assert
(
features
->
nDimension
==
2
and
"features must be 2 dimensional!"
);
assert
(
locations
->
nDimension
==
2
and
"locations must be 2 dimensional!"
);
assert
(
locations
->
nDimension
==
2
and
"locations must be 2 dimensional!"
);
assert
(
vecs
->
nDimension
==
2
and
"vecs must be 2 dimensional!"
);
assert
(
vecs
->
nDimension
==
2
and
"vecs must be 2 dimensional!"
);
assert
(
locations
->
size
[
0
]
==
vecs
->
size
[
0
]
and
assert
(
locations
->
size
[
0
]
==
vecs
->
size
[
0
]
and
...
...
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