Skip to content
Snippets Groups Projects

Feature buckets experiment

Merged Nicolas Pope requested to merge exp/feature-buckets into master
1 file
+ 2
2
Compare changes
  • Side-by-side
  • Inline
@@ -70,7 +70,7 @@ struct SalientGradient {
}
__device__ void operator()(ushort2 thread, ushort2 stride, ushort2 size, WarpSharedMemory &wsm) {
static const float PI = 3.14f;
static constexpr float PI = 3.14f;
static constexpr float PI2 = PI/2.0f;
for (int y=thread.y; y<size.y; y+=stride.y) {
@@ -177,7 +177,7 @@ struct SalientGradientGrouped {
}
__device__ void operator()(ushort2 thread, ushort2 stride, ushort2 size, WarpSharedMemory &wsm) {
static const float PI = 3.14f;
static constexpr float PI = 3.14f;
static constexpr float PI2 = PI/2.0f;
for (int y=thread.y; y<size.y; y+=stride.y) {
Loading