Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/torch/cunn.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsoumith <soumith@fb.com>2016-12-03 03:33:27 +0300
committersoumith <soumith@fb.com>2016-12-03 03:33:27 +0300
commit35b9fff3e1fb4d0a379f380319ad5686148d5bcf (patch)
treea81f0f4b815679a202b367bcd1b43b914460e507
parentb3b9a88aea184c6ae63a03647caaa1c2cc6dc732 (diff)
fix half type numerics issue in SpatialFractionalMaxPoolingspatfracmax
-rw-r--r--lib/THCUNN/SpatialFractionalMaxPooling.cu2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/THCUNN/SpatialFractionalMaxPooling.cu b/lib/THCUNN/SpatialFractionalMaxPooling.cu
index 22a2878..f3ca162 100644
--- a/lib/THCUNN/SpatialFractionalMaxPooling.cu
+++ b/lib/THCUNN/SpatialFractionalMaxPooling.cu
@@ -74,7 +74,7 @@ __global__ void SpatialFractionalMaxPooling_updateOutput(
}
}
- assert(maxVal != THCNumerics<Dtype>::min());
+ assert(THCNumerics<Dtype>::ne(maxVal, THCNumerics<Dtype>::min()));
assert(maxIndex != -1);
// +1 for Lua index