82f9e2358c35c5bbff8714280174617ba29cf92b,keras/engine/topology.py,,_collect_input_shape,#Any#,2418
Before Change
input_tensors = _to_list(input_tensors)
shapes = []
for x in input_tensors:
if hasattr(x, "_keras_shape"):
shapes.append(x._keras_shape)
else:
raise ValueError("Input tensor is not a Keras tensor:", x)
if len(shapes) == 1:
return shapes[0]
return shapes
After Change
try:
shapes.append(K.int_shape(x))
except TypeError:
shapes.append(None)
if len(shapes) == 1:
return shapes[0]
return shapes
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: keras-team/keras
Commit Name: 82f9e2358c35c5bbff8714280174617ba29cf92b
Time: 2017-02-17
Author: francois.chollet@gmail.com
File Name: keras/engine/topology.py
Class Name:
Method Name: _collect_input_shape
Project Name: keras-team/keras
Commit Name: 4fc583691b9ebf59c0bbea09fc1f5c7e5ee9c68b
Time: 2017-08-01
Author: souptc@gmail.com
File Name: keras/backend/cntk_backend.py
Class Name:
Method Name: rnn
Project Name: google/deepvariant
Commit Name: 4d934160aa7f4f9f1d5cdea7cd0e66cfc3d43d05
Time: 2018-04-29
Author: mdepristo@google.com
File Name: third_party/nucleus/io/fasta.py
Class Name: InMemoryRefReader
Method Name: __init__