Skip to content

Commit c571b4d

Browse files
manuelcandalesfacebook-github-bot
authored andcommitted
Fix typo in native_batch_norm
Differential Revision: D76073674
1 parent 9752cc6 commit c571b4d

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)