Skip to content

Commit 4768d55

Browse files
committed
[layers] fix prelu layer typo
1 parent 9ada2cb commit 4768d55

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tensorlayer/layers.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4524,10 +4524,11 @@ def __init__(
45244524
with tf.variable_scope(name) as vs:
45254525
alphas = tf.get_variable(name='alphas', shape=w_shape, initializer=a_init, **a_init_args )
45264526
try: ## TF 1.0
4527-
self.outputs = tf.nn.relu(self.inputs) + tf.mulitply(alphas, (self.inputs - tf.abs(self.inputs))) * 0.5
4527+
self.outputs = tf.nn.relu(self.inputs) + tf.multiply(alphas, (self.inputs - tf.abs(self.inputs))) * 0.5
45284528
except: ## TF 0.12
45294529
self.outputs = tf.nn.relu(self.inputs) + tf.mul(alphas, (self.inputs - tf.abs(self.inputs))) * 0.5
45304530

4531+
45314532
self.all_layers = list(layer.all_layers)
45324533
self.all_params = list(layer.all_params)
45334534
self.all_drop = dict(layer.all_drop)

0 commit comments

Comments
 (0)