From 1bf2fca8df1725e804b08b3668c0375b090146d9 Mon Sep 17 00:00:00 2001 From: gaikwadrahul8 <115997457+gaikwadrahul8@users.noreply.github.com> Date: Wed, 17 Apr 2024 22:49:15 +0530 Subject: [PATCH] Update exception logic in convolutional.ts (#8248) BUG --- tfjs-layers/src/layers/convolutional.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tfjs-layers/src/layers/convolutional.ts b/tfjs-layers/src/layers/convolutional.ts index c75240e1fd2..5207c1f88c4 100644 --- a/tfjs-layers/src/layers/convolutional.ts +++ b/tfjs-layers/src/layers/convolutional.ts @@ -105,7 +105,7 @@ export function conv1dWithBias( if (bias != null && bias.shape.length !== 1) { throw new ValueError( `The bias for a conv1dWithBias operation should be 1, but is ` + - `${kernel.shape.length} instead`); + `${bias.shape.length} instead`); } // TODO(cais): Support CAUSAL padding mode. if (dataFormat === 'channelsFirst') {