ad2deb9b161610b0e9afc7a1277d7d7e6b724180,returnn/tf/network.py,LossHolder,_tf_summary,#LossHolder#,2254

Before Change


          tf_compat.v1.summary.scalar("exp_loss_%s" % name, tf.exp(self._loss_value * self._norm_factor))
        if self._network.get_config().bool("debug_unnormalized_loss_summaries", False):
          tf_compat.v1.summary.scalar("unnormalized_loss_%s" % name, self._loss_value)
        if self._network.get_config().bool("debug_objective_loss_summaries", False):
          tf_compat.v1.summary.scalar("objective_loss_%s" % name, self._loss_value_for_objective)
    if self._error_value is not None:
      if self._error_value.get_shape().ndims == 0:

After Change


          tf_compat.v1.summary.scalar("exp_loss_%s" % name, tf.exp(self._loss_value * self._norm_factor))
        if self._network.get_config().bool("debug_unnormalized_loss_summaries", False):
          tf_compat.v1.summary.scalar("unnormalized_loss_%s" % name, self._loss_value)
        if self._network.get_config().bool("debug_objective_loss_summaries", False) and self._loss_value_for_objective:
          tf_compat.v1.summary.scalar("objective_loss_%s" % name, self._loss_value_for_objective)
    if self._error_value is not None:
      if self._error_value.get_shape().ndims == 0:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 7

Non-data size: 4

Instances


Project Name: rwth-i6/returnn
Commit Name: ad2deb9b161610b0e9afc7a1277d7d7e6b724180
Time: 2020-12-15
Author: nick.rossenbach@rwth-aachen.de
File Name: returnn/tf/network.py
Class Name: LossHolder
Method Name: _tf_summary


Project Name: tensorflow/benchmarks
Commit Name: ecec43ee2dd7d21a08d68d00c668ea54bde03672
Time: 2018-10-08
Author: reedwm@google.com
File Name: scripts/tf_cnn_benchmarks/variable_mgr.py
Class Name: VariableMgrDistributedFetchFromStagedPS
Method Name: create_outer_variable_scope


Project Name: tensorflow/benchmarks
Commit Name: ecec43ee2dd7d21a08d68d00c668ea54bde03672
Time: 2018-10-08
Author: reedwm@google.com
File Name: scripts/tf_cnn_benchmarks/variable_mgr.py
Class Name: VariableMgrLocalFetchFromPS
Method Name: create_outer_variable_scope


Project Name: tensorflow/benchmarks
Commit Name: ecec43ee2dd7d21a08d68d00c668ea54bde03672
Time: 2018-10-08
Author: reedwm@google.com
File Name: scripts/tf_cnn_benchmarks/variable_mgr.py
Class Name: VariableMgrLocalFetchFromStagedPS
Method Name: create_outer_variable_scope


Project Name: pantsbuild/pants
Commit Name: 11c519b88df5af5d2346a1490fd360af59fd1f54
Time: 2013-12-06
Author: benjy@foursquare.com
File Name: src/python/twitter/pants/tasks/task.py
Class Name: Task
Method Name: artifact_cache_reads_enabled


Project Name: pantsbuild/pants
Commit Name: 11c519b88df5af5d2346a1490fd360af59fd1f54
Time: 2013-12-06
Author: benjy@foursquare.com
File Name: src/python/twitter/pants/tasks/task.py
Class Name: Task
Method Name: artifact_cache_writes_enabled


Project Name: tensorflow/benchmarks
Commit Name: ecec43ee2dd7d21a08d68d00c668ea54bde03672
Time: 2018-10-08
Author: reedwm@google.com
File Name: scripts/tf_cnn_benchmarks/variable_mgr.py
Class Name: VariableMgrDistributedFetchFromPS
Method Name: create_outer_variable_scope