fc56073588771c81b4e134bff54195f5e74e6b43,thinc/backends/ops.py,Ops,multibatch,#,73

Before Change


                if is_list and isinstance(subseq, Objects):
                    subseq = subseq.data
                subseqs.append(subseq)
            queue.append(tuple(subseqs))
            i += batch_size
        return queue

After Change


            subseqs = []
            for sequence in sequences:
                if isinstance(sequence, list):
                    subseq = [sequence[i] for i in idx_batch]
                elif isinstance(sequence, tuple):
                    subseq = tuple(sequence[i] for i in idx_batch)  // type: ignore
                else:
                    subseq = sequence[idx_batch]  // type: ignore
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: explosion/thinc
Commit Name: fc56073588771c81b4e134bff54195f5e74e6b43
Time: 2020-01-21
Author: ines@ines.io
File Name: thinc/backends/ops.py
Class Name: Ops
Method Name: multibatch


Project Name: dit/dit
Commit Name: 041473983e93820efe5e10b635ff0bc8634f712f
Time: 2017-07-06
Author: ryangregoryjames@gmail.com
File Name: dit/profiles/information_partitions.py
Class Name: DependencyDecomposition
Method Name: _partition


Project Name: arogozhnikov/einops
Commit Name: f700314b855b2c1bb1bb3b8930289b6db62dca91
Time: 2019-05-10
Author: stefan.saftescu@gmail.com
File Name: einops/_backends.py
Class Name: TensorflowBackend
Method Name: shape