555ca942df407b8c1bf1d48383c60fa1bf09cc1d,keras/utils/layer_utils.py,,count_params,#Any#,12
Before Change
// Returns
The total number of scalars composing the weights
return int(np.sum([K.count_params(p) for p in set(weights)] ))
def print_summary(model, line_length=None, positions=None, print_fn=None):
After Change
weight_ids = set()
total = 0
for w in weights:
if id(w) not in weight_ids:
weight_ids.add(id(w))
total += int(K.count_params(w))
return total
def print_summary(model, line_length=None, positions=None, print_fn=None):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
Instances Project Name: keras-team/keras
Commit Name: 555ca942df407b8c1bf1d48383c60fa1bf09cc1d
Time: 2019-08-28
Author: francois.chollet@gmail.com
File Name: keras/utils/layer_utils.py
Class Name:
Method Name: count_params
Project Name: wkentaro/labelme
Commit Name: c2ba19759b2a6955ff3ccade614a15f1a6d61b9c
Time: 2019-05-15
Author: cmerchant@camgian.com
File Name: labelme/main.py
Class Name:
Method Name: _main
Project Name: microsoft/nni
Commit Name: 6c1fe5c811f82c571af94f787b4721f3a1cc7ca4
Time: 2019-11-25
Author: scottyugochang@gmail.com
File Name: src/sdk/pynni/nni/nas/pytorch/darts/mutator.py
Class Name: DartsMutator
Method Name: sample_final