2e7d63a19355f8d9e414b1d1eef24475a7b63a14,python/src/nnabla/parametric_functions.py,,group_normalization,#Any#Any#Any#Any#Any#Any#Any#Any#,1940

Before Change


        * :obj:`~nnabla.Variable`: Std (if ``output_stat=True`)
    
    shape_stat = [1 for _ in range(len(inp) + 1)]
    shape_stat[batch_axis] = inp.shape[batch_axis]
    shape_stat[channel_axis] = num_groups
    shape_stat[channel_axis + 1] = int(inp.shape[channel_axis] / num_groups)

    if param_init is None:

After Change


    
    from nnabla.normalization import _force_list

    batch_axis = _force_list(batch_axis)

    shape_stat = [inp.shape[i]
                  if i in batch_axis else 1 for i in range(len(inp.shape) + 1)]
    shape_stat[channel_axis] = num_groups
    shape_stat[channel_axis + 1] = int(inp.shape[channel_axis] / num_groups)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: sony/nnabla
Commit Name: 2e7d63a19355f8d9e414b1d1eef24475a7b63a14
Time: 2019-05-14
Author: Akio.Hayakawa@sony.com
File Name: python/src/nnabla/parametric_functions.py
Class Name:
Method Name: group_normalization


Project Name: sony/nnabla
Commit Name: 2e7d63a19355f8d9e414b1d1eef24475a7b63a14
Time: 2019-05-14
Author: Akio.Hayakawa@sony.com
File Name: python/test/function/test_group_normalization.py
Class Name:
Method Name: test_group_normalization_forward_backward


Project Name: sony/nnabla
Commit Name: 2e7d63a19355f8d9e414b1d1eef24475a7b63a14
Time: 2019-05-14
Author: Akio.Hayakawa@sony.com
File Name: python/test/function/test_layer_normalization.py
Class Name:
Method Name: test_layer_normalization_forward_backward