Skip to content

Commit

Permalink
Update exception logic in convolutional.ts (#8248)
Browse files Browse the repository at this point in the history
BUG
  • Loading branch information
gaikwadrahul8 authored Apr 17, 2024
1 parent 63250ec commit 1bf2fca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tfjs-layers/src/layers/convolutional.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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') {
Expand Down

0 comments on commit 1bf2fca

Please sign in to comment.