Commit 5a22d81f authored by Maksim Shabunin's avatar Maksim Shabunin

Fixed warnings produced by static analyzer

parent 8ac2c5d6
...@@ -402,7 +402,10 @@ typedef enum { ...@@ -402,7 +402,10 @@ typedef enum {
struct OCL4DNNLRNConfig struct OCL4DNNLRNConfig
{ {
OCL4DNNLRNConfig() : OCL4DNNLRNConfig() :
phase_test(true) lrn_type(LRNParameter_NormRegion_ACROSS_CHANNELS),
phase_test(true),
local_size(0), alpha(0.f), beta(0.f), k(0.f), norm_by_size(false),
batch_size(0), channels(0), height(0), width(0)
{} {}
MatShape in_shape; MatShape in_shape;
LRNParameter_NormRegion_WITHIN_CHANNEL_t lrn_type; LRNParameter_NormRegion_WITHIN_CHANNEL_t lrn_type;
...@@ -442,7 +445,7 @@ class OCL4DNNLRN ...@@ -442,7 +445,7 @@ class OCL4DNNLRN
struct OCL4DNNSoftmaxConfig struct OCL4DNNSoftmaxConfig
{ {
OCL4DNNSoftmaxConfig() OCL4DNNSoftmaxConfig() : axis(0), channels(0)
{} {}
MatShape in_shape; MatShape in_shape;
int axis; int axis;
......
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