1c221934aaeab20ed5b6fa245b33b00a8b557533,tests/keras/backend/backend_test.py,TestBackend,test_rnn_no_states,#TestBackend#,815
Before Change
go_backwards=False, mask=None)
assert len(h2) == 0
last_y2 = K.eval(last_y2)
y2 = K.eval(y2)
assert_allclose(last_y1, last_y2, atol=1e-05)
assert_allclose(y1, y2, atol=1e-05)
After Change
_, x = parse_shape_or_val((num_samples, timesteps, input_dim))
_, wi = parse_shape_or_val((input_dim, output_dim))
mask = np.random.randint(2, size=(num_samples, timesteps))
wi_k = K.variable(wi)
def get_step_function(backend, w_i):
In pattern: SUPERPATTERN
Frequency: 6
Non-data size: 5
Instances
Project Name: keras-team/keras
Commit Name: 1c221934aaeab20ed5b6fa245b33b00a8b557533
Time: 2018-11-29
Author: andhus@kth.se
File Name: tests/keras/backend/backend_test.py
Class Name: TestBackend
Method Name: test_rnn_no_states
Project Name: brian-team/brian2
Commit Name: c84200e9bb97b39a73778e5b32df3b85cb2614c9
Time: 2013-06-25
Author: dan.goodman@ens.fr
File Name: brian2/tests/test_syntax_translation.py
Class Name:
Method Name: parse_expressions
Project Name: brian-team/brian2
Commit Name: bc809c7974b172e5fa5f89547034a539fa1c05a1
Time: 2013-08-13
Author: marcel.stimberg@ens.fr
File Name: brian2/groups/group.py
Class Name: GroupItemMapping
Method Name: __getitem__
Project Name: vatlab/SoS
Commit Name: e9bee65a708edc40448a361833d63aefc77fd46c
Time: 2017-05-31
Author: ben.bog@gmail.com
File Name: sos/R/kernel.py
Class Name: sos_R
Method Name: lan_to_sos
Project Name: neurosynth/neurosynth
Commit Name: 73675264dd48387319f62780b52d81389016cc1f
Time: 2014-03-24
Author: tyarkoni@gmail.com
File Name: neurosynth/base/dataset.py
Class Name: FeatureTable
Method Name: get_ids
Project Name: keras-team/keras
Commit Name: efe5916109e220a429a2cff110edb952d747466f
Time: 2016-04-01
Author: francois.chollet@gmail.com
File Name: tests/keras/layers/test_convolutional.py
Class Name:
Method Name: test_averagepooling_2d