Changeset 6bd83c1 for src


Ignore:
Timestamp:
Dec 29, 2021, 5:51:49 PM (2 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/cnn, feature/crepe
Children:
1b6a0035
Parents:
b5b0ddd
git-author:
Paul Brossier <piem@piem.org> (01/08/19 15:50:31)
git-committer:
Paul Brossier <piem@piem.org> (12/29/21 17:51:49)
Message:

[dense] improve debug string

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/ai/dense.c

    rb5b0ddd r6bd83c1  
    5555void aubio_dense_debug(aubio_dense_t *c, aubio_tensor_t *input_tensor)
    5656{
    57   char_t input_string[15];
    58   snprintf(input_string, 15, "(%d)", input_tensor->shape[0]);
    59   AUBIO_DBG("dense:     %15s ¤ (%d, %d) ->"
    60       " (%d) (%d params)\n",
    61       input_string,
    62       c->n_units,
    63       c->n_units,
    64       input_tensor->shape[0] * c->n_units);
     57  uint_t n_params = input_tensor->shape[0] * c->n_units + c->n_units;
     58  AUBIO_DBG("dense:     %15s -> (%d,) (%d params)"
     59      " (n_units=%d, weights=(%d, %d), bias=(%d,))\n",
     60      aubio_tensor_get_shape_string(input_tensor), c->n_units, n_params,
     61      c->n_units, c->weights->height, c->weights->length, c->bias->length);
    6562}
    6663
Note: See TracChangeset for help on using the changeset viewer.