Skip to content

TensorLayer 1.9.0

Compare
Choose a tag to compare
@DEKHTIARJonathan DEKHTIARJonathan released this 16 Jun 18:30
· 1320 commits to master since this release
5f57e8e

Release Note

This version was supposed to be release under version: 1.8.6, due to the large amount of changes introduced in this version, it has been decided to release this version under the version: 1.9.0

Changelog

Added

  • API:
    • tl.alphas and tl.alphas_like added following the tf.ones/zeros and tf.zeros_like/ones_like (PR #580)
    • tl.lazy_imports.LazyImport to import heavy libraries only when necessary (PR #667)
    • tl.act.leaky_relu6 and tl.layers.PRelu6Layer have been deprecated (PR #686)
    • tl.act.leaky_twice_relu6 and tl.layers.PTRelu6Layer have been deprecated (PR #686)
  • CI Tool:
    • Stale Probot added to clean stale issues (PR #573)
    • Changelog Probot Configuration added (PR #637)
    • Travis Builds now handling a matrix of TF Version from TF==1.6.0 to TF==1.8.0 (PR #644)
    • CircleCI added to build and upload Docker Containers for each PR merged and tag release (PR #648)
  • Decorator:
    • tl.decorators API created including deprecated_alias and private_method (PR #660)
    • tl.decorators API enriched with protected_method (PR #675)
    • tl.decorators API enriched with deprecated directly raising warning and modifying documentation (PR #691)
  • Docker:
    • Containers for each release and for each PR merged on master built (PR #648)
    • Containers built in the following configurations (PR #648):
      • py2 + cpu
      • py2 + gpu
      • py3 + cpu
      • py3 + gpu
  • Documentation:
    • Clean README.md (PR #677)
    • Release semantic version added on index page (PR #633)
    • Optimizers page added (PR #636)
    • AMSGrad added on Optimizers page added (PR #636)
  • Layer:
    • ElementwiseLambdaLayer added to use custom function to connect multiple layer inputs (PR #579)
    • AtrousDeConv2dLayer added (PR #662)
    • Fix bugs of using tf.layers in CNN (PR #686)
  • Optimizer:
    • AMSGrad Optimizer added based on On the Convergence of Adam and Beyond (ICLR 2018) (PR #636)
  • Setup:
    • Creation of installation flaggs all, all_cpu, and all_gpu (PR #660)
  • Test:
    • test_utils_predict.py added to reproduce and fix issue #288 (PR #566)
    • Layer_DeformableConvolution_Test added to reproduce issue #572 with deformable convolution (PR #573)
    • Array_Op_Alphas_Test and Array_Op_Alphas_Like_Test added to test tensorlayer/array_ops.py file (PR #580)
    • test_optimizer_amsgrad.py added to test AMSGrad optimizer (PR #636)
    • test_logging.py added to insure robustness of the logging API (PR #645)
    • test_decorators.py added (PR #660)
    • test_activations.py added (PR #686)
  • Tutorials:
    • tutorial_tfslim has been introduced to show how to use SlimNetsLayer (PR #560).
    • add the following to all tutorials (PR #697):
      tf.logging.set_verbosity(tf.logging.DEBUG)
      tl.logging.set_verbosity(tl.logging.DEBUG)

Changed

  • Tensorflow CPU & GPU dependencies moved to separated requirement files in order to allow PyUP.io to parse them (PR #573)
  • The document of LambdaLayer for linking it with ElementwiseLambdaLayer (PR #587)
  • RTD links point to stable documentation instead of latest used for development (PR #633)
  • TF Version older than 1.6.0 are officially unsupported and raises an exception (PR #644)
  • README.md Badges Updated with Support Python and Tensorflow Versions (PR #644)
  • TL logging API has been consistent with TF logging API and thread-safe (PR #645)
  • Relative Imports changed for absolute imports (PR #657)
  • tl.files refactored into a directory with numerous files (PR #657)
  • tl.files.voc_dataset fixed because of original Pascal VOC website was down (PR #657)
  • extra requirements hidden inside the library added in the project requirements (PR #657)
  • requirements files refactored in requirements/ directory (PR #657)
  • README.md and other markdown files have been refactored and cleaned. (PR #639)
  • Ternary Convolution Layer added in unittest (PR #658)
  • Convolution Layers unittests have been cleaned & refactored (PR #658)
  • All the tests are now using a DEBUG level verbosity when run individualy (PR #660)
  • tf.identity as activation is ignored, thus reducing the size of the graph by removing useless operation (PR #667)
  • argument dictionaries are now checked and saved within the Layer Base Class (PR #667)
  • Layer Base Class now presenting methods to update faultlessly all_layers, all_params, and all_drop (PR #675)
  • Input Layers have been removed from tl.layers.core and added to tl.layers.inputs (PR #675)
  • Input Layers are now considered as true layers in the graph (they represent a placeholder), unittests have been updated (PR #675)
  • Layer API is simplified, with automatic feeding prev_layer into self.inputs (PR #675)
  • Complete Documentation Refactoring and Reorganization (namely Layer APIs) (PR #691)

Deprecated

  • tl.layers.TimeDistributedLayer argurment args is deprecated in favor of layer_args (PR #667)
  • tl.act.leaky_relu have been deprecated in favor of tf.nn.leaky_relu (PR #686)

Removed

  • assert() calls remove and replaced by raise AssertionError() (PR #667)
  • tl.identity is removed, not used anymore and deprecated for a long time (PR #667)
  • All Code specific to TF.__version__ < "1.6" have been removed (PR #675)

Fixed

  • Issue #498 - Deprecation Warning Fix in tl.layers.RNNLayer with inspect (PR #574)
  • Issue #498 - Deprecation Warning Fix in tl.files with truth value of an empty array is ambiguous (PR #575)
  • Issue #565 related to tl.utils.predict fixed - np.hstack problem in which the results for multiple batches are stacked along axis=1 (PR #566)
  • Issue #572 with tl.layers.DeformableConv2d fixed (PR #573)
  • Issue #664 with tl.layers.ConvLSTMLayer fixed (PR #676)
  • Typo of the document of ElementwiseLambdaLayer (PR #588)
  • Error in tl.layers.TernaryConv2d fixed - self.inputs not defined (PR #658)
  • Deprecation warning fixed in tl.layers.binary._compute_threshold() (PR #658)
  • All references to tf.logging replaced by tl.logging (PR #661)
  • Duplicated code removed when bias was used (PR #667)
  • tensorlayer.third_party.roi_pooling.roi_pooling.roi_pooling_ops is now lazy loaded to prevent systematic error raised (PR #675)
  • Documentation not build in RTD due to old version of theme in docs directory fixed (PR #703)
  • Tutorial:
    • tutorial_word2vec_basic.py saving issue #476 fixed (PR #635)
    • All tutorials tested and errors have been fixed (PR #635)

Dependencies Update

  • Update pytest from 3.5.1 to 3.6.0 (PR #647)
  • Update progressbar2 from 3.37.1 to 3.38.0 (PR #651)
  • Update scikit-image from 0.13.1 to 0.14.0 (PR #656)
  • Update keras from 2.1.6 to 2.2.0 (PR #684)
  • Update requests from 2.18.4 to 2.19.0 (PR #695)

Contributors