Changeset 378852b for src/ai


Ignore:
Timestamp:
Jan 16, 2019, 10:01:01 PM (6 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/crepe_org
Children:
8389694
Parents:
c6e51cd
Message:

[conv2d] fix debug string, clean up

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/ai/conv2d.c

    rc6e51cd r378852b  
    8181{
    8282  AUBIO_ASSERT(c);
    83   // destroy internals here
    84   if (c->kernel) {
     83  if (c->kernel)
    8584    del_aubio_tensor(c->kernel);
    86   }
    8785  if (c->bias)
    8886    del_fvec(c->bias);
     
    148146      padding_start[0] = 0;
    149147      padding_start[1] = 0;
     148
    150149      break;
    151150    //case PAD_CAUSAL:
     
    194193    * c->kernel->shape[1] * c->kernel->shape[3];
    195194
    196   AUBIO_DBG("conv2d:    %15s ¤ conv2d %s"
    197       " : (%d, %d, %d)"
    198       " (%d params, stride (%d, %d), pad_start [%d, %d])\n",
    199     aubio_tensor_get_shape_string(input_tensor),
    200     aubio_tensor_get_shape_string(c->kernel),
    201     c->output_shape[0], c->output_shape[1], c->output_shape[2],
    202     n_params,
     195  const char_t *tensor_str = aubio_tensor_get_shape_string(input_tensor);
     196  //AUBIO_DBG("conv2d: kernel_shape_str %s\n", kernel_shape_str);
     197  AUBIO_DBG("conv2d:    %15s -> (%d, %d, %d)",
     198    tensor_str,
     199    c->output_shape[0], c->output_shape[1], c->output_shape[2]);
     200  tensor_str = aubio_tensor_get_shape_string(c->kernel);
     201  AUBIO_DBG(" (n_params=%d, kernel_shape=(%d, %d),"
     202      " weigths=%s, stride (%d, %d), pad_start [%d, %d]"
     203      " pad_end [%d, %d])\n",
     204    n_params, c->kernel_shape[0], c->kernel_shape[1],
     205    tensor_str,
    203206    c->stride_shape[0], c->stride_shape[1],
    204207    -c->padding_start[0], -c->padding_start[1]);
Note: See TracChangeset for help on using the changeset viewer.