2e0f0929df4b01b269962a6423d6cb78b6d3da17,tensorlayer/layers/inputs.py,EmbeddingInput,__init__,#EmbeddingInput#Any#Any#Any#Any#Any#Any#,280
Before Change
dtype=LayersConfig.tf_dtype, **self.E_init_args
)
self.outputs = tf.nn.embedding_lookup(embeddings, self.inputs)
self._add_layers(self.outputs)
self._add_params(embeddings)
class AverageEmbeddingInput(Layer):
After Change
self.dtype = dtype
logging.info("OneHotInput %s: %s" % (self.name, str(inputs.shape.as_list())))
if self.depth is None:
raise RuntimeError(self.__class__.__name__ + ": depth == None the number of output units is undefined")
def build(self, inputs):
pass
def forward(self, inputs):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
Instances
Project Name: tensorlayer/tensorlayer
Commit Name: 2e0f0929df4b01b269962a6423d6cb78b6d3da17
Time: 2018-12-04
Author: dhsig552@163.com
File Name: tensorlayer/layers/inputs.py
Class Name: EmbeddingInput
Method Name: __init__
Project Name: tensorlayer/tensorlayer
Commit Name: 2e0f0929df4b01b269962a6423d6cb78b6d3da17
Time: 2018-12-04
Author: dhsig552@163.com
File Name: tensorlayer/layers/inputs.py
Class Name: EmbeddingInput
Method Name: __init__
Project Name: tensorlayer/tensorlayer
Commit Name: 3d305831a0edd1288cc2f94f81debbdc359d7bb3
Time: 2019-03-22
Author: jingqing.zhang15@imperial.ac.uk
File Name: tensorlayer/layers/lambda_layers.py
Class Name: Lambda
Method Name: __init__
Project Name: tensorlayer/tensorlayer
Commit Name: 75eda16c274f5ae2cf1522aa0b51b89d8f872b07
Time: 2018-12-04
Author: dhsig552@163.com
File Name: tensorlayer/layers/merge.py
Class Name: Concat
Method Name: __init__