Skip to content

Commit 14b6fd6

Browse files
committed
update to TensorLayer 1.8.1
1 parent 8ebb42f commit 14b6fd6

File tree

113 files changed

+14628
-8597
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

113 files changed

+14628
-8597
lines changed

.gitignore

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
*.gz
2+
*.npz
3+
*.pyc
4+
*~
5+
.DS_Store
6+
.idea
7+
.spyproject/
8+
build/
9+
dist
10+
docs/_build
11+
tensorlayer.egg-info
12+
tensorlayer/__pacache__

main.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import os, sys, pprint, time
2-
import scipy.misc
1+
import os, pprint, time
32
import numpy as np
43
import tensorflow as tf
54
import tensorlayer as tl
@@ -111,7 +110,7 @@ def main(_):
111110
## load image data
112111
batch_idxs = min(len(data_files), FLAGS.train_size) // FLAGS.batch_size
113112

114-
for idx in xrange(0, batch_idxs):
113+
for idx in range(0, batch_idxs):
115114
batch_files = data_files[idx*FLAGS.batch_size:(idx+1)*FLAGS.batch_size]
116115
## get real images
117116
# more image augmentation functions in http://tensorlayer.readthedocs.io/en/latest/modules/prepro.html

tensorlayer/__init__.py

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
1-
"""
2-
Deep learning and Reinforcement learning library for Researchers and Engineers
3-
"""
4-
# from __future__ import absolute_import
5-
1+
"""Deep learning and Reinforcement learning library for Researchers and Engineers"""
2+
from __future__ import absolute_import
63

74
try:
85
install_instr = "Please make sure you install a recent enough version of TensorFlow."
@@ -11,21 +8,22 @@
118
raise ImportError("__init__.py : Could not import TensorFlow." + install_instr)
129

1310
from . import activation
14-
act = activation
1511
from . import cost
1612
from . import files
17-
# from . import init
1813
from . import iterate
1914
from . import layers
20-
from . import ops
2115
from . import utils
2216
from . import visualize
23-
from . import prepro # was preprocesse
17+
from . import prepro
2418
from . import nlp
2519
from . import rein
20+
from . import distributed
2621

22+
# alias
23+
act = activation
24+
vis = visualize
2725

28-
__version__ = "1.4.5"
26+
__version__ = "1.8.1"
2927

3028
global_flag = {}
3129
global_dict = {}
1 KB
Binary file not shown.
971 Bytes
Binary file not shown.
545 Bytes
Binary file not shown.
648 Bytes
Binary file not shown.
3.58 KB
Binary file not shown.
3.78 KB
Binary file not shown.
24.2 KB
Binary file not shown.

0 commit comments

Comments
 (0)