Skip to content

Commit 1bf2fca

Browse files
Update exception logic in convolutional.ts (#8248)
BUG
1 parent 63250ec commit 1bf2fca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tfjs-layers/src/layers/convolutional.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ export function conv1dWithBias(
105105
if (bias != null && bias.shape.length !== 1) {
106106
throw new ValueError(
107107
`The bias for a conv1dWithBias operation should be 1, but is ` +
108-
`${kernel.shape.length} instead`);
108+
`${bias.shape.length} instead`);
109109
}
110110
// TODO(cais): Support CAUSAL padding mode.
111111
if (dataFormat === 'channelsFirst') {

0 commit comments

Comments
 (0)