09b97e951a0d47e7d5f31a66804a8e76f389315b,keras/backend/cntk_backend.py,,rnn,#Any#Any#Any#Any#Any#Any#Any#Any#,1187

Before Change



        final_output, final_states = _recurrence(inputs, states)
        last_output = C.sequence.last(final_output)
        last_states = final_states

    if need_convert:
        final_output = C.sequence.unpack(final_output, 0, no_mask_output=True)
        last_states = [
            C.sequence.unpack(
                s, 0, no_mask_output=True) for s in last_states]
        if num_time_step is not None and num_time_step is not C.FreeDimension:
            final_output = _reshape_sequence(final_output, num_time_step)
            last_states = [
                _reshape_sequence(
                    _, num_time_step) for _ in last_states]

    return last_output, final_output, last_states

After Change


        if num_time_step is not None and num_time_step is not C.FreeDimension:
            final_output = _reshape_sequence(final_output, num_time_step)

    f_stats = []
    for l_s, i_s in zip(last_states, initial_states):
        if _get_dynamic_axis_num(i_s) == 0 and _get_dynamic_axis_num(l_s) == 1:
            f_stats.append(C.user_function(ConvertToStatic(l_s, batch_size=i_s.shape[0])))
        else:
            f_stats.append(l_s)

    return last_output, final_output, f_stats


def has_seq_axis(x):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 12

Instances


Project Name: keras-team/keras
Commit Name: 09b97e951a0d47e7d5f31a66804a8e76f389315b
Time: 2017-07-08
Author: souptc@gmail.com
File Name: keras/backend/cntk_backend.py
Class Name:
Method Name: rnn


Project Name: keras-team/keras
Commit Name: 09b97e951a0d47e7d5f31a66804a8e76f389315b
Time: 2017-07-08
Author: souptc@gmail.com
File Name: keras/backend/cntk_backend.py
Class Name:
Method Name: rnn


Project Name: keras-team/keras
Commit Name: 6a8815de0cec97480e2f0ce4769ceaf1121274bd
Time: 2016-07-27
Author: pradeep.dasigi@gmail.com
File Name: keras/engine/topology.py
Class Name: Merge
Method Name: compute_mask


Project Name: NifTK/NiftyNet
Commit Name: 37e2656912c22d8aefe94a1bab2eefa7c4f54ccc
Time: 2018-03-23
Author: wenqi.li@ucl.ac.uk
File Name: niftynet/layer/deconvolution.py
Class Name:
Method Name: infer_output_dims