8c6df6412ae7141f46e7752be2a2a16c519b8ccc,official/nlp/tasks/question_answering.py,QuestionAnsweringTask,aggregate_logs,#QuestionAnsweringTask#Any#Any#,241

Before Change


            self.raw_aggregated_result(
                unique_id=values[0],
                start_logits=values[1].tolist(),
                end_logits=values[2].tolist()))
    return state

  def reduce_aggregated_logs(self, aggregated_logs):

After Change


    for outputs in zip(step_outputs["unique_ids"],
                       step_outputs["start_logits"],
                       step_outputs["end_logits"]):
      numpy_values = [
          output.numpy() for output in outputs if output is not None]

      for values in zip(*numpy_values):
        state.append(RawAggregatedResult(
            unique_id=values[0],
            start_logits=values[1],
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: tensorflow/models
Commit Name: 8c6df6412ae7141f46e7752be2a2a16c519b8ccc
Time: 2020-11-10
Author: allencwang@google.com
File Name: official/nlp/tasks/question_answering.py
Class Name: QuestionAnsweringTask
Method Name: aggregate_logs


Project Name: marcoancona/DeepExplain
Commit Name: 8d7f748e1d8eae7d57444c6e42119dadc47287e9
Time: 2018-02-27
Author: marco.ancona@inf.ethz.ch
File Name: deepexplain/tensorflow/methods.py
Class Name: IntegratedGradients
Method Name: run


Project Name: gboeing/osmnx
Commit Name: 491a98ef8f626481474ca917d0d22f94dc417f79
Time: 2017-04-24
Author: gboeing@berkeley.edu
File Name: osmnx/plot.py
Class Name:
Method Name: plot_shape


Project Name: matplotlib/matplotlib
Commit Name: 0b92b4f5530fee68432f13075a1ddc866748f9d1
Time: 2020-11-20
Author: anntzer.lee@gmail.com
File Name: examples/showcase/firefox.py
Class Name:
Method Name: svg_parse