4419dbd0a344ea7bbe38926d53e8ab181f49d680,texar/modules/encoders/conv_encoders.py,Conv1DEncoder,_build_conv1d_hparams,#Conv1DEncoder#Any#,111
Before Change
kernel_size = [_to_list(ks) for ks in kernel_size]
other_kwargs = {}
if self._hparams.other_conv_kwargs is not None:
if not isinstance(self._hparams.other_conv_kwargs, dict):
raise ValueError("hparams["other_conv_kwargs"] must be a dict.")
other_kwargs = self._hparams.other_conv_kwargs
conv_pool_hparams = []
for i in range(nconv):
hparams_i = []
names = []
After Change
"kernel_size", nconv)
kernel_size = [_to_list(ks) for ks in kernel_size]
other_kwargs = self._hparams.other_conv_kwargs or {}
if isinstance(other_kwargs, HParams):
other_kwargs = other_kwargs.todict()
if not isinstance(other_kwargs, dict):
raise ValueError("hparams["other_conv_kwargs"] must be a dict.")
conv_pool_hparams = []
for i in range(nconv):
hparams_i = []
names = []
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 17
Instances
Project Name: asyml/texar
Commit Name: 4419dbd0a344ea7bbe38926d53e8ab181f49d680
Time: 2018-04-01
Author: zhitinghu@gmail.com
File Name: texar/modules/encoders/conv_encoders.py
Class Name: Conv1DEncoder
Method Name: _build_conv1d_hparams
Project Name: asyml/texar
Commit Name: 4419dbd0a344ea7bbe38926d53e8ab181f49d680
Time: 2018-04-01
Author: zhitinghu@gmail.com
File Name: texar/modules/encoders/conv_encoders.py
Class Name: Conv1DEncoder
Method Name: _build_dense_hparams
Project Name: asyml/texar
Commit Name: 4419dbd0a344ea7bbe38926d53e8ab181f49d680
Time: 2018-04-01
Author: zhitinghu@gmail.com
File Name: texar/modules/encoders/conv_encoders.py
Class Name: Conv1DEncoder
Method Name: _build_pool_hparams