c2115ea5f462acdff07919f68ecc77339b47e486,autokeras/blocks/reduction.py,Merge,_inputs_same_shape,#Merge#Any#,84
Before Change
return layers.Concatenate()(inputs)
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):
Flatten the input tensor with Keras Flatten layer.
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: 13
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: TheAlgorithms/Python
Commit Name: 26b0803319b6cf14f623769356c79343e3d43d14
Time: 2019-12-08
Author: cclauss@me.com
File Name: backtracking/sudoku.py
Class Name:
Method Name: is_completed