Unverified Commit f2e3800b authored by Ben Graham's avatar Ben Graham Committed by GitHub
Browse files

Merge pull request #36 from elPistolero/set_locations_fix

remove overly strict assertion on features dimensionality
parents cb129912 317c5086
...@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment