Skip to content
Permalink
Browse files

libavfilter: Fixes warnings for unused variables in dnn_srcnn.h, dnn_…

…espcn.h, dnn_backend_tf.c.

Signed-off-by: Pedro Arthur <bygrandao@gmail.com>
  • Loading branch information...
HighVoltageRocknRoll authored and grandao committed Jul 28, 2018
1 parent 9d87897 commit a66e74306a36c8467452a67d2d1af51dbbb9b4c5
Showing with 64 additions and 74 deletions.
  1. +64 −2 libavfilter/dnn_backend_tf.c
  2. +0 −37 libavfilter/dnn_espcn.h
  3. +0 −35 libavfilter/dnn_srcnn.h
@@ -375,9 +375,71 @@ DNNModel *ff_dnn_load_default_model_tf(DNNDefaultModel model_type)
TFModel *tf_model = NULL;
TF_OperationDescription *op_desc;
TF_Operation *op;
TF_Operation *const_ops_buffer[6];
TF_Output input;
int64_t input_shape[] = {1, -1, -1, 1};
static const int64_t input_shape[] = {1, -1, -1, 1};
static const char tanh[] = "Tanh";
static const char sigmoid[] = "Sigmoid";
static const char relu[] = "Relu";

static const float *srcnn_consts[] = {
srcnn_conv1_kernel,
srcnn_conv1_bias,
srcnn_conv2_kernel,
srcnn_conv2_bias,
srcnn_conv3_kernel,
srcnn_conv3_bias
};
static const long int *srcnn_consts_dims[] = {
srcnn_conv1_kernel_dims,
srcnn_conv1_bias_dims,
srcnn_conv2_kernel_dims,
srcnn_conv2_bias_dims,
srcnn_conv3_kernel_dims,
srcnn_conv3_bias_dims
};
static const int srcnn_consts_dims_len[] = {
4,
1,
4,
1,
4,
1
};
static const char *srcnn_activations[] = {
relu,
relu,
relu
};

static const float *espcn_consts[] = {
espcn_conv1_kernel,
espcn_conv1_bias,
espcn_conv2_kernel,
espcn_conv2_bias,
espcn_conv3_kernel,
espcn_conv3_bias
};
static const long int *espcn_consts_dims[] = {
espcn_conv1_kernel_dims,
espcn_conv1_bias_dims,
espcn_conv2_kernel_dims,
espcn_conv2_bias_dims,
espcn_conv3_kernel_dims,
espcn_conv3_bias_dims
};
static const int espcn_consts_dims_len[] = {
4,
1,
4,
1,
4,
1
};
static const char *espcn_activations[] = {
tanh,
tanh,
sigmoid
};

input.index = 0;

@@ -5398,41 +5398,4 @@ static const long int espcn_conv3_bias_dims[] = {
4
};

static const float *espcn_consts[] = {
espcn_conv1_kernel,
espcn_conv1_bias,
espcn_conv2_kernel,
espcn_conv2_bias,
espcn_conv3_kernel,
espcn_conv3_bias
};

static const long int *espcn_consts_dims[] = {
espcn_conv1_kernel_dims,
espcn_conv1_bias_dims,
espcn_conv2_kernel_dims,
espcn_conv2_bias_dims,
espcn_conv3_kernel_dims,
espcn_conv3_bias_dims
};

static const int espcn_consts_dims_len[] = {
4,
1,
4,
1,
4,
1
};

static const char espcn_tanh[] = "Tanh";

static const char espcn_sigmoid[] = "Sigmoid";

static const char *espcn_activations[] = {
espcn_tanh,
espcn_tanh,
espcn_sigmoid
};

#endif
@@ -2110,39 +2110,4 @@ static const long int srcnn_conv3_bias_dims[] = {
1
};

static const float *srcnn_consts[] = {
srcnn_conv1_kernel,
srcnn_conv1_bias,
srcnn_conv2_kernel,
srcnn_conv2_bias,
srcnn_conv3_kernel,
srcnn_conv3_bias
};

static const long int *srcnn_consts_dims[] = {
srcnn_conv1_kernel_dims,
srcnn_conv1_bias_dims,
srcnn_conv2_kernel_dims,
srcnn_conv2_bias_dims,
srcnn_conv3_kernel_dims,
srcnn_conv3_bias_dims
};

static const int srcnn_consts_dims_len[] = {
4,
1,
4,
1,
4,
1
};

static const char srcnn_relu[] = "Relu";

static const char *srcnn_activations[] = {
srcnn_relu,
srcnn_relu,
srcnn_relu
};

#endif

0 comments on commit a66e743

Please sign in to comment.
You can’t perform that action at this time.