3d305831a0edd1288cc2f94f81debbdc359d7bb3,tensorlayer/layers/lambda_layers.py,Lambda,__init__,#Lambda#Any#Any#Any#Any#,61

Before Change


            raise AssertionError("The `fn` argument cannot be None")

        with tf.compat.v1.variable_scope(name) as vs:
            self.outputs = fn(self.inputs, **self.fn_args)
            variables = tf.compat.v1.get_collection(TF_GRAPHKEYS_VARIABLES, scope=vs.name)

        self._add_layers(self.outputs)
        self._add_params(variables)


class ElementwiseLambda(Layer):

After Change



        super(Lambda, self).__init__(name=name)
        self.fn = fn
        self._weights = fn_weights if fn_weights is not None else []
        self.fn_args = fn_args if fn_args is not None else {}

        try:
            fn_name = repr(self.fn)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


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: 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__


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__