diff --git a/tfjs-layers/src/layers/convolutional_depthwise.ts b/tfjs-layers/src/layers/convolutional_depthwise.ts index ea27eebdac..ac6bb7e19e 100644 --- a/tfjs-layers/src/layers/convolutional_depthwise.ts +++ b/tfjs-layers/src/layers/convolutional_depthwise.ts @@ -204,7 +204,7 @@ export class DepthwiseConv2D extends BaseConv { config['depthwiseRegularizer'] = serializeRegularizer(this.depthwiseRegularizer); config['depthwiseConstraint'] = - serializeConstraint(this.depthwiseRegularizer); + serializeConstraint(this.depthwiseConstraint); return config; } }