bc73d367e95cfbf410c97cdfa2abe87ee77199fb,kur/containers/layers/dense.py,Dense,_parse,#Dense#Any#,32
Before Change
super()._parse(engine)
if "size" not in self.args:
raise ParsingError("Missing key "size" in Dense layer.")
self.size = engine.evaluate(self.args["size"], recursive=True)
try:
self.size = int(self.size)
except ValueError:
After Change
super()._parse(engine)
if isinstance(self.args, dict):
self.size = engine.evaluate(self.args["size"], recursive=True)
elif isinstance(self.args, list):
self.size = engine.evaluate(self.args, recursive=True)
else:
self.size = self.args
if not isinstance(self.size, (tuple, list)):
self.size = [self.size]
try:
for i, v in enumerate(self.size):
self.size[i] = int(v)
except ValueError:
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 11
Instances
Project Name: deepgram/kur
Commit Name: bc73d367e95cfbf410c97cdfa2abe87ee77199fb
Time: 2016-11-28
Author: ajsyp@syptech.net
File Name: kur/containers/layers/dense.py
Class Name: Dense
Method Name: _parse
Project Name: prody/ProDy
Commit Name: bb958949caaba2341ae5662c484d5106d68e4aed
Time: 2019-04-15
Author: hongchun@pitt.edu
File Name: prody/ensemble/functions.py
Class Name:
Method Name: refineEnsemble
Project Name: prody/ProDy
Commit Name: 54a02c7a3ca3cce7e62f92e0a27244d27f8d9e83
Time: 2019-02-08
Author: hongchun@pitt.edu
File Name: prody/ensemble/functions.py
Class Name:
Method Name: refineEnsemble