c2115ea5f462acdff07919f68ecc77339b47e486,autokeras/blocks/reduction.py,Merge,_inputs_same_shape,#Merge#,84
Before Change
def _inputs_same_shape(self, inputs):
for input_node in inputs:
if input_node.shape.as_list() != inputs[0].shape.as_list():
return False
return True
class Flatten(block_module.Block):
After Change
return layers.Concatenate()(inputs)
def _inputs_same_shape(self, inputs):
return all(
input_node.shape.as_list() == inputs[0].shape.as_list()
for input_node in inputs
)
class Flatten(block_module.Block):
Flatten the input tensor with Keras Flatten layer.
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances Project Name: jhfjhfj1/autokeras
Commit Name: c2115ea5f462acdff07919f68ecc77339b47e486
Time: 2021-02-26
Author: Anselm.Hahn@gmail.com
File Name: autokeras/blocks/reduction.py
Class Name: Merge
Method Name: _inputs_same_shape
Project Name: pgmpy/pgmpy
Commit Name: 72bc7e7f627bfc0d4d383a1674288170be0f7598
Time: 2015-11-01
Author: KshitijSaraogi@gmail.com
File Name: pgmpy/independencies/Independencies.py
Class Name: Independencies
Method Name: __eq__
Project Name: scikit-learn/scikit-learn
Commit Name: 3a796a58738c5391b72328d2a1111fe3c0976a03
Time: 2020-08-07
Author: thomasjpfan@gmail.com
File Name: sklearn/compose/_column_transformer.py
Class Name:
Method Name: _is_empty_column_selection