Skip to content

Commit

Permalink
release 1.4.5
Browse files Browse the repository at this point in the history
  • Loading branch information
zsdonghao committed May 18, 2017
1 parent 2b83e1b commit a96c7d8
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@
# built documents.
#
# The short X.Y version.
version = '1.4.4'
version = '1.4.5'
# The full version, including alpha/beta/rc tags.
release = '1.4.4'
release = '1.4.5'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down Expand Up @@ -143,7 +143,7 @@
# The name for this set of Sphinx documents.
# "<project> v<release> documentation" by default.
#
# html_title = 'TensorLayer v1.4.3'
# html_title = 'TensorLayer v1.4.5'

# A shorter title for the navigation bar. Default is the same as html_title.
#
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

setup(
name = "tensorlayer",
version = "1.4.4",
version = "1.4.5",
include_package_data=True,
author='TensorLayer Contributors',
author_email='[email protected]',
Expand Down
2 changes: 1 addition & 1 deletion tensorlayer/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
from . import rein


__version__ = "1.4.4"
__version__ = "1.4.5"

global_flag = {}
global_dict = {}
4 changes: 2 additions & 2 deletions tensorlayer/layers.py
Original file line number Diff line number Diff line change
Expand Up @@ -3775,7 +3775,7 @@ def retrieve_seq_length_op2(data):
return tf.reduce_sum(tf.cast(tf.greater(data, tf.zeros_like(data)), tf.int32), 1)


def retrieve_seq_length_op3(data, pad_val=0):
def retrieve_seq_length_op3(data, pad_val=0): # HangSheng: return tensor for sequence length, if input is tf.string
data_shape_size = data.get_shape().ndims
if data_shape_size == 3:
return tf.reduce_sum(tf.cast(tf.reduce_any(tf.not_equal(data, pad_val), axis=2), dtype=tf.int32), 1)
Expand All @@ -3787,7 +3787,7 @@ def retrieve_seq_length_op3(data, pad_val=0):
raise ValueError("retrieve_seq_length_op3: handling data_shape_size %s hasn't been implemented!" % (data_shape_size))


def target_mask_op(data, pad_val=0):
def target_mask_op(data, pad_val=0): # HangSheng: return tensor for mask,if input is tf.string
data_shape_size = data.get_shape().ndims
if data_shape_size == 3:
return tf.cast(tf.reduce_any(tf.not_equal(data, pad_val), axis=2), dtype=tf.int32)
Expand Down

0 comments on commit a96c7d8

Please sign in to comment.