class_docstr: _id, batch normalization, activation, dropout, ready
class_docstr_tok: ["_id",",","batch","normalization",",","activation",",","dropout",",","ready"]
code: def set_bn_identity(self, strict=True, param=None, noise=None):
      if self.use_bn:
          if strict:
              self._init["moving_mean"] = param["moving_mean"]
              self._init["moving_variance"] = param["moving_variance"]
              self._init["beta"] = self._init["moving_mean"]
              self._init["gamma"] = np.sqrt(
                  self._init["moving_variance"] + param["epsilon"]
              )
          else:
              # use default initialization for batch normalization layer
              (
                  self._init["moving_mean"],
                  self._init["moving_variance"],
              ) = (None, None)
              self._init["beta"], self._init["gamma"] = None, None
  
imports: from models.basic_model import BasicModel
  import tensorflow
  import numpy
  import copy
label_desc: Use image node_id 15 for calling the BaseLayer obj's underlying member method code with example usage: obj.set_bn_identity(strict, param, noise) without return types