b95fcf7f52aca8ad0b1afb3cfc64c8eed534fafe,tests/keras/backend/backend_test.py,,check_single_tensor_operation,#Any#Any#Any#,43
Before Change
**kwargs)([val])[0]
else:
z = k.eval(getattr(k, function_name)(k.variable(val), **kwargs))
if hasattr(z, "_keras_shape"):
assert z._keras_shape == z.shape
z_list += [z]
for (z1, z2) in zip(z_list[1:], z_list[:-1]):
assert z1.shape == z2.shape
After Change
def check_single_tensor_operation(function_name, x_shape_or_val, backend_list, **kwargs):
shape_or_val = kwargs.pop("shape_or_val", True)
assert_value_equality = kwargs.pop("assert_value_equality", True)
assert_value_with_ref = kwargs.pop("assert_value_with_ref", None)
cntk_dynamicity = kwargs.pop("cntk_dynamicity", False)
if shape_or_val:
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 3
Instances
Project Name: keras-team/keras
Commit Name: b95fcf7f52aca8ad0b1afb3cfc64c8eed534fafe
Time: 2017-07-29
Author: me@taehoonlee.com
File Name: tests/keras/backend/backend_test.py
Class Name:
Method Name: check_single_tensor_operation
Project Name: brian-team/brian2
Commit Name: ecb0835108271a12159ae6f406314f20cb0ac306
Time: 2015-10-20
Author: marcel.stimberg@inserm.fr
File Name: brian2/core/network.py
Class Name: Network
Method Name: restore
Project Name: markovmodel/PyEMMA
Commit Name: 4a8d4b647b79b5d0cea572d5951395bf98ba97c8
Time: 2017-11-28
Author: m.scherer@fu-berlin.de
File Name: pyemma/_base/serialization/serialization.py
Class Name: SerializableMixIn
Method Name: __setstate__
Project Name: markovmodel/PyEMMA
Commit Name: a68a41b9182a6b9f112f659e893800631c13eb39
Time: 2017-12-17
Author: m.scherer@fu-berlin.de
File Name: pyemma/_base/serialization/serialization.py
Class Name: SerializableMixIn
Method Name: __setstate__