Skip to content

Commit 42195da

Browse files
Fix typo in native_batch_norm (#11446)
Differential Revision: D76073674
1 parent 528dce7 commit 42195da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernels/portable/cpu/util/normalization_ops_util.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ bool check_batch_norm_args(
3838
ET_LOG_AND_RETURN_IF_FALSE(
3939
tensors_have_same_dtype(in, running_mean.value()));
4040
}
41-
if (running_mean.has_value()) {
41+
if (running_var.has_value()) {
4242
ET_LOG_AND_RETURN_IF_FALSE(
4343
tensors_have_same_dtype(in, running_var.value()));
4444
}

0 commit comments

Comments
 (0)