5a8f346e64cb432a445002230246ee042dbc278b,keras/backend/theano_backend.py,,rnn,#Any#Any#Any#Any#Any#Any#Any#Any#,1446
Before Change
if mask is not None:
if mask.ndim == ndim - 1:
mask = expand_dims(mask)
assert mask.ndim == ndim
mask = mask.dimshuffle(axes)
if unroll:
indices = list(range(input_length))
After Change
uses_learning_phase = False
if mask is not None:
if mask.ndim != 2:
raise ValueError(
"mask should have `shape=(samples, time)`, "
"got {}".format(mask.shape))
mask = mask.dimshuffle([1, 0])
def get_matching_mask(mask_t, ref_tensor_t):
// tf.where needs its condition tensor
In pattern: SUPERPATTERN
Frequency: 5
Non-data size: 5
Instances Project Name: keras-team/keras
Commit Name: 5a8f346e64cb432a445002230246ee042dbc278b
Time: 2018-11-05
Author: andhus@kth.se
File Name: keras/backend/theano_backend.py
Class Name:
Method Name: rnn
Project Name: ray-project/ray
Commit Name: 43be73e4cfb16fee4d8029d4cd0dc0750500c9ed
Time: 2020-04-30
Author: ed.nmi.oakes@gmail.com
File Name: python/ray/serve/master.py
Class Name: ServeMaster
Method Name: set_backend_config
Project Name: GPflow/GPflow
Commit Name: 03364d333d4d291410b16f490215a31671dcba1d
Time: 2017-09-24
Author: art.art.v@gmail.com
File Name: gpflow/params.py
Class Name: ParamList
Method Name: append
Project Name: ray-project/ray
Commit Name: 368088be85294bc312522403b5445f2ac3ca1071
Time: 2020-06-04
Author: sven@anyscale.io
File Name: rllib/policy/sample_batch.py
Class Name: MultiAgentBatch
Method Name: concat_samples
Project Name: ray-project/ray
Commit Name: 368088be85294bc312522403b5445f2ac3ca1071
Time: 2020-06-04
Author: sven@anyscale.io
File Name: rllib/policy/sample_batch.py
Class Name: SampleBatch
Method Name: concat