Changeset 4647d38


Ignore:
Timestamp:
Jan 8, 2019, 3:50:31 PM (6 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/cnn_org, feature/crepe_org
Children:
dfae6e0
Parents:
52b0e42
Message:

[dense] improve debug string

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/ai/dense.c

    r52b0e42 r4647d38  
    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.