Skip to content

Commit

Permalink
0.2.5
Browse files Browse the repository at this point in the history
  • Loading branch information
YeongHyeon committed Feb 4, 2022
1 parent e9dfcb4 commit 1096301
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Binary file added dist/whiteboxlayer-0.2.5-py3-none-any.whl
Binary file not shown.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

setup(
name = 'whiteboxlayer',
version = '0.2.4',
version = '0.2.5',
description = 'TensorFlow based custom layers',
author = 'YeongHyeon Park',
author_email = '[email protected]',
Expand Down
4 changes: 2 additions & 2 deletions whiteboxlayer/extensions/recurrent.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,14 @@ def lstm_cell(layer, x_now, h_prev, c_prev, output_dim, \
c_now_act = layer.activation(x=c_now, activation=activation, name="%s-c-act" %(name))
h_now = tf.compat.v1.multiply(o_now, c_now_act, name="%s-h" %(name))

return h_now, c_now, y_now
return h_now, c_now

def lstm_layer(layer, x, output_dim, \
batch_norm=False, activation="tanh", recurrent_activation="sigmoid", bi_direction=False, name='lstm', verbose=True):

x = tf.transpose(x, perm=[1, 0, 2])
dim_seq = x.get_shape().as_list()[0]
y, y_rev, h_now = None, None, None
y, y_rev, h_now, c_now = None, None, None, None
for idx_s in range(dim_seq):

h_now, c_now = lstm_cell(layer=layer, \
Expand Down

0 comments on commit 1096301

Please sign in to comment.