0ff5e51fc622f02e1c434ad10642f03e36168433,autokeras/nodes.py,TextInput,build,#TextInput#Any#Any#,128
Before Change
def build(self, hp, inputs=None):
output_node = nest.flatten(inputs)[0]
if len(output_node.shape) == 1:
output_node = tf.expand_dims(output_node, axis=-1)
return output_node
def get_adapter(self):
return adapters.TextAdapter()
After Change
def build(self, hp, inputs=None):
output_node = nest.flatten(inputs)[0]
if len(output_node.shape) == 1:
output_node = keras_layers.ExpandLastDim()(output_node)
return output_node
def get_adapter(self):
return adapters.TextAdapter()
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 4
Instances
Project Name: jhfjhfj1/autokeras
Commit Name: 0ff5e51fc622f02e1c434ad10642f03e36168433
Time: 2020-11-11
Author: jhfjhfj1@gmail.com
File Name: autokeras/nodes.py
Class Name: TextInput
Method Name: build
Project Name: jhfjhfj1/autokeras
Commit Name: 0ff5e51fc622f02e1c434ad10642f03e36168433
Time: 2020-11-11
Author: jhfjhfj1@gmail.com
File Name: autokeras/nodes.py
Class Name: ImageInput
Method Name: build