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
for i, v in enumerate(self.size):
self.size[i] = int(v)
except ValueError:
raise ParsingError("Key "size" in Dense layer must be an integer "
"or a list of integers. Received: {}".format(self.size))
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
def _build(self, backend):
Create the backend-specific placeholder.
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
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: deepgram/kur
Commit Name: 59d68fcac566e3c3a5cbf2324cc1f3a6542a23bd
Time: 2017-06-13
Author: ajsyp@syptech.net
File Name: kur/containers/layers/dense.py
Class Name: Dense
Method Name: _parse
Project Name: deepgram/kur
Commit Name: 59d68fcac566e3c3a5cbf2324cc1f3a6542a23bd
Time: 2017-06-13
Author: ajsyp@syptech.net
File Name: kur/containers/layers/convolution.py
Class Name: Convolution
Method Name: _parse