Skip to content

Commit b033481

Browse files
committed
[release] 1.8.4rc1
1 parent 60cfcb1 commit b033481

File tree

4 files changed

+23
-23
lines changed

4 files changed

+23
-23
lines changed

docs/conf.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,9 @@
6767
# built documents.
6868
#
6969
# The short X.Y version.
70-
version = '1.8.4rc0'
70+
version = '1.8.4rc1'
7171
# The full version, including alpha/beta/rc tags.
72-
release = '1.8.4rc0'
72+
release = '1.8.4rc1'
7373

7474
# The language for content autogenerated by Sphinx. Refer to documentation
7575
# for a list of supported languages.
@@ -143,7 +143,7 @@
143143
# The name for this set of Sphinx documents.
144144
# "<project> v<release> documentation" by default.
145145
#
146-
# html_title = 'TensorLayer v1.8.4rc0'
146+
# html_title = 'TensorLayer v1.8.4rc1'
147147

148148
# A shorter title for the navigation bar. Default is the same as html_title.
149149
#

example/tutorial_mnist.py

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -119,13 +119,13 @@ def main_test_layers(model='relu'):
119119
n_batch += 1
120120
print(" val loss: %f" % (val_loss / n_batch))
121121
print(" val acc: %f" % (val_acc / n_batch))
122-
try:
123-
# You can visualize the weight of 1st hidden layer as follow.
124-
tl.vis.draw_weights(network.all_params[0].eval(), second=10, saveable=True, shape=[28, 28], name='w1_' + str(epoch + 1), fig_idx=2012)
125-
# You can also save the weight of 1st hidden layer to .npz file.
126-
# tl.files.save_npz([network.all_params[0]] , name='w1'+str(epoch+1)+'.npz')
127-
except: # pylint: disable=bare-except
128-
print("You should change vis.draw_weights(), if you want to save the feature images for different dataset")
122+
# try:
123+
# # You can visualize the weight of 1st hidden layer as follow.
124+
# tl.vis.draw_weights(network.all_params[0].eval(), second=10, saveable=True, shape=[28, 28], name='w1_' + str(epoch + 1), fig_idx=2012)
125+
# # You can also save the weight of 1st hidden layer to .npz file.
126+
# # tl.files.save_npz([network.all_params[0]] , name='w1'+str(epoch+1)+'.npz')
127+
# except: # pylint: disable=bare-except
128+
# print("You should change vis.draw_weights(), if you want to save the feature images for different dataset")
129129

130130
print('Evaluation')
131131
test_loss, test_acc, n_batch = 0, 0, 0
@@ -306,11 +306,11 @@ def main_test_stacked_denoise_AE(model='relu'):
306306
n_batch += 1
307307
print(" val loss: %f" % (val_loss / n_batch))
308308
print(" val acc: %f" % (val_acc / n_batch))
309-
try:
310-
# visualize the 1st hidden layer during fine-tune
311-
tl.vis.draw_weights(network.all_params[0].eval(), second=10, saveable=True, shape=[28, 28], name='w1_' + str(epoch + 1), fig_idx=2012)
312-
except: # pylint: disable=bare-except
313-
print("You should change vis.draw_weights(), if you want to save the feature images for different dataset")
309+
# try:
310+
# # visualize the 1st hidden layer during fine-tune
311+
# tl.vis.draw_weights(network.all_params[0].eval(), second=10, saveable=True, shape=[28, 28], name='w1_' + str(epoch + 1), fig_idx=2012)
312+
# except: # pylint: disable=bare-except
313+
# print("You should change vis.draw_weights(), if you want to save the feature images for different dataset")
314314

315315
print('Evaluation')
316316
test_loss, test_acc, n_batch = 0, 0, 0
@@ -451,10 +451,10 @@ def main_test_cnn_layer():
451451
n_batch += 1
452452
print(" val loss: %f" % (val_loss / n_batch))
453453
print(" val acc: %f" % (val_acc / n_batch))
454-
try:
455-
tl.vis.CNN2d(network.all_params[0].eval(), second=10, saveable=True, name='cnn1_' + str(epoch + 1), fig_idx=2012)
456-
except: # pylint: disable=bare-except
457-
print("You should change vis.CNN(), if you want to save the feature images for different dataset")
454+
# try:
455+
# tl.vis.CNN2d(network.all_params[0].eval(), second=10, saveable=True, name='cnn1_' + str(epoch + 1), fig_idx=2012)
456+
# except: # pylint: disable=bare-except
457+
# print("You should change vis.CNN(), if you want to save the feature images for different dataset")
458458

459459
print('Evaluation')
460460
test_loss, test_acc, n_batch = 0, 0, 0
@@ -474,7 +474,7 @@ def main_test_cnn_layer():
474474
sess = tf.InteractiveSession()
475475

476476
# Dropout and Dropconnect
477-
main_test_layers(model='relu') # model = relu, dropconnect
477+
# main_test_layers(model='relu') # model = relu, dropconnect
478478

479479
# Single Denoising Autoencoder
480480
# main_test_denoise_AE(model='sigmoid') # model = relu, sigmoid
@@ -483,4 +483,4 @@ def main_test_cnn_layer():
483483
# main_test_stacked_denoise_AE(model='relu') # model = relu, sigmoid
484484

485485
# CNN
486-
# main_test_cnn_layer()
486+
main_test_cnn_layer()

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
setup(
1212
name="tensorlayer",
13-
version="1.8.4rc0",
13+
version="1.8.4rc1",
1414
include_package_data=True,
1515
author='TensorLayer Contributors',
1616
author_email='[email protected]',

tensorlayer/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
act = activation
2525
vis = visualize
2626

27-
__version__ = "1.8.4rc0"
27+
__version__ = "1.8.4rc1"
2828

2929
global_flag = {}
3030
global_dict = {}

0 commit comments

Comments
 (0)