Changeset 49ac607f


Ignore:
Timestamp:
Dec 29, 2021, 5:51:58 PM (3 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/crepe
Children:
b2e2cd0
Parents:
8db0930
git-author:
Paul Brossier <piem@piem.org> (01/16/19 22:01:01)
git-committer:
Paul Brossier <piem@piem.org> (12/29/21 17:51:58)
Message:

[conv2d] fix debug string, clean up

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/ai/conv2d.c

    r8db0930 r49ac607f  
    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.