diff --git a/tfjs-layers/src/layers/convolutional.ts b/tfjs-layers/src/layers/convolutional.ts index c75240e1fd..5207c1f88c 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') {