Skip to content

Commit

Permalink
fix KW issues of this->mean_values_ and this->varirance_values_ initi…
Browse files Browse the repository at this point in the history
…alization
  • Loading branch information
chuanqi129 committed Feb 5, 2020
1 parent 4020279 commit adcb43f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tensorflow/core/kernels/mkl_fused_batch_norm_op.cc
Original file line number Diff line number Diff line change
Expand Up @@ -518,6 +518,8 @@ class MklFusedBatchNormOp : public OpKernel {
errors::InvalidArgument("Invalid data format"));
OP_REQUIRES_OK(context, context->GetAttr("is_training", &is_training_));
depth_ = 0;
mean_values_ = nullptr;
variance_values_ = nullptr;
}

void Compute(OpKernelContext* context) override {
Expand Down

0 comments on commit adcb43f

Please sign in to comment.