37e2656912c22d8aefe94a1bab2eefa7c4f54ccc,niftynet/layer/deconvolution.py,,infer_output_dims,#Any#Any#Any#Any#,33

Before Change


    if padding == "VALID":
        output_dims = [
            dim * strides[i] + max(kernel_sizes[i] - strides[i], 0)
            for (i, dim) in enumerate(input_dims)]
    else:
        output_dims = [dim * strides[i] for (i, dim) in enumerate(input_dims)]
    return output_dims

After Change


    
    assert len(input_dims) == len(strides)
    assert len(input_dims) == len(kernel_sizes)
    output_dims = []
    for (i, dim) in enumerate(input_dims):
        if dim is None:
            output_dims.append(None)
            continue
        if padding == "VALID":
            output_dims.append(
                dim * strides[i] + max(kernel_sizes[i] - strides[i], 0))
        else:
            output_dims.append(dim * strides[i])
    return output_dims
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


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


Project Name: NifTK/NiftyNet
Commit Name: 22b9b2bd35843166c5dd9f58319aa17e8311f28e
Time: 2018-06-20
Author: patricio@feops.com
File Name: niftynet/layer/rand_rotation.py
Class Name: RandomRotationLayer
Method Name: layer_op


Project Name: NervanaSystems/coach
Commit Name: a7206ed7029a06954a490de603fd26dffe9f9270
Time: 2018-02-26
Author: 30383381+itaicaspi-intel@users.noreply.github.com
File Name: memories/differentiable_neural_dictionary.py
Class Name: QDND
Method Name: query