1da5440d8444f99f79b597356e9342ffab0eaf5f,models/official/detection/modeling/architecture/heads.py,RpnHead,__init__,#RpnHead#Any#Any#Any#Any#Any#Any#Any#Any#,35

Before Change


          depth_multiplier=1,
          bias_initializer=tf.zeros_initializer())
    else:
      self._conv2d_op = functools.partial(
          tf.layers.conv2d,
          kernel_initializer=tf.random_normal_initializer(stddev=0.01),
          bias_initializer=tf.zeros_initializer())

    self._use_batch_norm = use_batch_norm
    self._batch_norm_activation = batch_norm_activation

After Change


    self._upsample_num_filters = upsample_num_filters
    if activation == "relu":
      self._activation = tf.nn.relu
    elif activation == "swish":
      self._activation = tf.nn.swish
    else:
      raise ValueError("Activation {} not implemented.".format(activation))
    self._use_batch_norm = use_batch_norm
    self._batch_norm_activation = batch_norm_activation

  def __call__(self, features, is_training):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: tensorflow/tpu
Commit Name: 1da5440d8444f99f79b597356e9342ffab0eaf5f
Time: 2020-04-14
Author: pengchong@google.com
File Name: models/official/detection/modeling/architecture/heads.py
Class Name: RpnHead
Method Name: __init__


Project Name: pantsbuild/pants
Commit Name: 14759e1065e307c7760299670da30f64ffdbf783
Time: 2016-08-27
Author: stuhood@gmail.com
File Name: src/python/pants/engine/engine.py
Class Name: ConcurrentEngine
Method Name: reduce


Project Name: elfi-dev/elfi
Commit Name: 6f4b9ca4ffa9fcf0a437fc2ff56860ad13b61077
Time: 2016-12-07
Author: jarno.lintusaari@aalto.fi
File Name: elfi/distributions.py
Class Name: RandomVariable
Method Name: _prepare_operation