Skip to content

Commit fe895c1

Browse files
committed
Change deprecated api
1 parent e64e7e5 commit fe895c1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/ssdMobilenetv1/mobileNetV1.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ function depthwiseConvLayer(
1313
return tf.tidy(() => {
1414

1515
let out = tf.depthwiseConv2d(x, params.filters, strides, 'same')
16-
out = tf.batchNormalization<tf.Rank.R4>(
16+
out = tf.batchNorm<tf.Rank.R4>(
1717
out,
1818
params.batch_norm_mean,
1919
params.batch_norm_variance,
20-
epsilon,
20+
params.batch_norm_offset,
2121
params.batch_norm_scale,
22-
params.batch_norm_offset
22+
epsilon
2323
)
2424
return tf.clipByValue(out, 0, 6)
2525

0 commit comments

Comments
 (0)