[conv1d] improve debug string
authorPaul Brossier <piem@piem.org>
Tue, 8 Jan 2019 14:49:55 +0000 (15:49 +0100)
committerPaul Brossier <piem@piem.org>
Wed, 29 Dec 2021 16:51:49 +0000 (11:51 -0500)
src/ai/conv1d.c

index df67a8e..a7ce3f5 100644 (file)
@@ -184,14 +184,13 @@ void aubio_conv1d_debug(aubio_conv1d_t *c, aubio_tensor_t *input_tensor)
   // print some info
   AUBIO_ASSERT(c);
   uint_t n_params = (c->kernel->shape[0] * c->kernel->shape[2] + 1)
-    * c->kernel->shape[1] * c->kernel->shape[3];
-  AUBIO_DBG("conv1d: input (%d, %d) ยค conv1d (%d, %d, %d)"
-      " : (%d, %d)"
-      " (%d params, stride (%d), pad_start [%d])\n",
-    input_tensor->shape[0], input_tensor->shape[1],
-    c->kernel->shape[0], c->kernel->shape[1], c->kernel->shape[2],
+    * c->kernel->shape[1];
+  AUBIO_DBG("conv1d:    %15s -> (%d, %d) (%d params)"
+      " (weigths=(%d, %d, %d), stride=(%d,), pad_start=(%d,))\n",
+    aubio_tensor_get_shape_string(input_tensor),
     c->output_shape[0], c->output_shape[1],
     n_params,
+    c->kernel->shape[0], c->kernel->shape[1], c->kernel->shape[2],
     c->stride_shape,
     -c->padding_start);
 }