804cf56a5f0e70d39f6447cd2e0be52fbfec6a8c,tf_agents/utils/tensor_normalizer.py,StreamingTensorNormalizer,variables,#StreamingTensorNormalizer#,251

Before Change


  @property
  def variables(self):
    Returns a tuple of tf variables owned by this normalizer.
    return self._count, self._mean_sum, self._var_sum

  def _update_ops(self, tensor, outer_dims):
    Returns a list of ops which update normalizer variables for tensor.

After Change


    Returns a tuple of tf variables owned by this normalizer.
    return (tf.nest.pack_sequence_as(self._tensor_spec, self._count),
            tf.nest.pack_sequence_as(self._tensor_spec, self._mean_sum),
            tf.nest.pack_sequence_as(self._tensor_spec, self._var_sum))

  def _update_ops(self, tensor, outer_dims):
    Returns a list of ops which update normalizer variables for tensor.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: tensorflow/agents
Commit Name: 804cf56a5f0e70d39f6447cd2e0be52fbfec6a8c
Time: 2019-09-23
Author: oars@google.com
File Name: tf_agents/utils/tensor_normalizer.py
Class Name: StreamingTensorNormalizer
Method Name: variables


Project Name: asyml/texar
Commit Name: af461df627ef660d1a71b6981dedb4e4b504ba9a
Time: 2017-09-25
Author: junxianh2@gmail.com
File Name: txtgen/modules/connectors/connectors.py
Class Name: StochasticConnector
Method Name: _build


Project Name: tensorflow/agents
Commit Name: 804cf56a5f0e70d39f6447cd2e0be52fbfec6a8c
Time: 2019-09-23
Author: oars@google.com
File Name: tf_agents/utils/tensor_normalizer.py
Class Name: EMATensorNormalizer
Method Name: variables