3308778b9dfa28dbb9d5e450a7f587aea6f12198,keras/utils/layer_utils.py,,count_total_params,#Any#Any#,122

Before Change


        else:
            trainable_count += np.sum([K.count_params(p) for p in layer.trainable_weights])
            non_trainable_count += np.sum([K.count_params(p) for p in layer.non_trainable_weights])
    return trainable_count, non_trainable_count


def convert_all_kernels_in_model(model):
    Converts all convolution kernels in a model from Theano to TensorFlow.

After Change


        else:
            trainable_count += np.sum([K.count_params(p) for p in layer.trainable_weights])
            non_trainable_count += np.sum([K.count_params(p) for p in layer.non_trainable_weights])
    return int(trainable_count), int(non_trainable_count)


def convert_all_kernels_in_model(model):
    Converts all convolution kernels in a model from Theano to TensorFlow.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 4

Instances


Project Name: keras-team/keras
Commit Name: 3308778b9dfa28dbb9d5e450a7f587aea6f12198
Time: 2017-04-01
Author: mail@dahoiv.net
File Name: keras/utils/layer_utils.py
Class Name:
Method Name: count_total_params


Project Name: NifTK/NiftyNet
Commit Name: 9b638935feccbb0fce928b5e9e38616c74960394
Time: 2017-08-30
Author: wenqi.li@ucl.ac.uk
File Name: niftynet/engine/image_window.py
Class Name:
Method Name: _read_window_sizes


Project Name: NifTK/NiftyNet
Commit Name: f9f1242e23bc4ad0433577b81274b9a6065fbb89
Time: 2017-07-13
Author: eli.gibson@gmail.com
File Name: niftynet/utilities/input_placeholders.py
Class Name: GANPatch
Method Name: full_conditioning_shape


Project Name: GPflow/GPflow
Commit Name: c1d9de30ac38adcf0d3400a805af03d7f8ec1d9f
Time: 2018-01-02
Author: art.art.v@gmail.com
File Name: gpflow/transforms.py
Class Name: LowerTriangular
Method Name: backward_tensor


Project Name: NifTK/NiftyNet
Commit Name: f9f1242e23bc4ad0433577b81274b9a6065fbb89
Time: 2017-07-13
Author: eli.gibson@gmail.com
File Name: niftynet/utilities/misc_io.py
Class Name:
Method Name: match_volume_shape_to_patch_definition