3d305831a0edd1288cc2f94f81debbdc359d7bb3,tensorlayer/layers/lambda_layers.py,Lambda,__init__,#Lambda#Any#Any#Any#Any#,61
Before Change
logging.info("Lambda %s" % self.name)
if fn is None:
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)
After Change
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)
except:
fn_name = "name not available"
logging.info("Lambda %s: func: %s, len_weights: %s" % (self.name, fn_name, len(self._weights)))
self.build()
self._built = True
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 8
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: matplotlib/matplotlib
Commit Name: d23bcea94a01a598de9619a1bf45b911120f7096
Time: 2019-01-08
Author: jklymak@gmail.com
File Name: lib/matplotlib/axis.py
Class Name: Axis
Method Name: _update_ticks
Project Name: SheffieldML/GPy
Commit Name: f3f4bf67ad87c4d30e3694e251d274c3b85c81da
Time: 2015-11-09
Author: ibinbei@gmail.com
File Name: GPy/__init__.py
Class Name:
Method Name: load