9950f411a0ec5ae5c9b98959a84f25fd10f1c9ea,hypergan/multi_component.py,MultiComponent,combine,#MultiComponent#Any#,29
Before Change
return data
if type(data[0]) == tf.Tensor:
return self.components[0].ops.concat(values=data, axis=1)
if callable(data[0]):
return self.call_each(data)
return data
After Change
result = []
for j,_ in enumerate(data[0]):
column = []
for i,_ in enumerate(data):
column.append(data[i][j])
reduction = self.reduce(column)
result.append(reduction)
return result
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: HyperGAN/HyperGAN
Commit Name: 9950f411a0ec5ae5c9b98959a84f25fd10f1c9ea
Time: 2017-06-10
Author: mikkel@255bits.com
File Name: hypergan/multi_component.py
Class Name: MultiComponent
Method Name: combine
Project Name: tensorflow/models
Commit Name: a2de57994a4f67d4032c6be4c315bd962b950faa
Time: 2020-11-20
Author: rathodv@google.com
File Name: research/object_detection/model_lib_v2.py
Class Name:
Method Name: eager_eval_loop
Project Name: gyoisamurai/GyoiThon
Commit Name: 78b56b5b833d7ae74853c2809058848681520a80
Time: 2019-12-11
Author: gyoiler3@gmail.com
File Name: report_merger.py
Class Name: MergeReport
Method Name: get_target_report