59d68fcac566e3c3a5cbf2324cc1f3a6542a23bd,kur/containers/layers/dense.py,Dense,_parse,#Dense#Any#,42

Before Change


			raise ParsingError(""auto_flatten" key in Dense layer must be "
				"boolean. Received: {}".format(self.auto_flatten))

		if not isinstance(self.type, str) or \
			not self.type in self.SUPPORTED_TYPES:
			raise ParsingError(""type" must be one of: {}".format(
				", ".join(self.SUPPORTED_TYPES)))

		assert self.type in self.SUPPORTED_TYPES

		if self.highway_bias is not None:
			try:

After Change


			raise ParsingError(""auto_flatten" key in Dense layer must be "
				"boolean. Received: {}".format(self.auto_flatten))

		if not isinstance(self.highway, bool):
			raise ParsingError(""highway" must be boolean.")

		if self.highway_bias is not None:
			try:
				self.highway_bias = float(self.highway_bias)
			except ValueError:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


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


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