e2cbf6605e1a6f15777099f56821b42159605335,python/mxnet/gluon/trainer.py,Trainer,__init__,#Trainer#Any#Any#Any#Any#Any#Any#,79
Before Change
// only python 3.5 requires sorting
if py_version[0] == 3 and py_version[1] == 5:
names = sorted(names)
for name in names:
p = params[name]
if not isinstance(p, Parameter):
raise ValueError(
"First argument must be a dict of Parameters, " \
"got list of %s."%(type(p)))
param_list.append(p)
// Shared parameters have same uuid; only need to store one of the shared versions
if p._uuid in self._param2name:
continue
self._param2name[p._uuid] = name
params = param_list
self._params = []
// parameters to initialize on the kvstore
After Change
compression_params=None, update_on_kvstore=None):
param_list = []
if isinstance(params, (dict, OrderedDict)):
for key in sorted(list(params.keys())):
param_list.append(params[key])
params = param_list
if not isinstance(params, (list, tuple)):
raise ValueError(
"First argument must be a list or dict of Parameters, " \
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 8
Instances Project Name: apache/incubator-mxnet
Commit Name: e2cbf6605e1a6f15777099f56821b42159605335
Time: 2020-08-12
Author: lausen@amazon.com
File Name: python/mxnet/gluon/trainer.py
Class Name: Trainer
Method Name: __init__
Project Name: ilastik/ilastik
Commit Name: c8105b3974fba93097bd28e5ae14a27e5f56c857
Time: 2013-03-14
Author: bergs@janelia.hhmi.org
File Name: ilastik/applets/objectExtraction/objectExtractionSerializer.py
Class Name: SerialObjectFeaturesSlot
Method Name: deserialize
Project Name: apache/incubator-mxnet
Commit Name: e2cbf6605e1a6f15777099f56821b42159605335
Time: 2020-08-12
Author: lausen@amazon.com
File Name: python/mxnet/gluon/trainer.py
Class Name: Trainer
Method Name: __init__
Project Name: pantsbuild/pants
Commit Name: 991b6233b442369be2310ca58fbd7c4b93f72c89
Time: 2014-12-23
Author: tinystatemachine@gmail.com
File Name: src/python/pants/backend/core/tasks/what_changed.py
Class Name: WhatChanged
Method Name: console_output