Skip to content

Commit

Permalink
TensorLayerX 0.5.8 Release (#68)
Browse files Browse the repository at this point in the history
  • Loading branch information
Laicheng0830 committed Feb 3, 2023
1 parent c987ee4 commit 2bf117c
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 4 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,11 @@ More resources can be found [here](https://github.com/tensorlayer)

## Installation

### TensorLayerX corresponds to the back-end version
| TensorLayerX | TensorFlow | MindSpore | PaddlePaddle|PyTorch|
| :-----:| :----: | :----: |:-----:|:----:|
| v0.5.8 | v2.4.0 | v1.8.1 | v2.2.0 | v1.10.0 |
| v0.5.7 | v2.0.0 | v1.6.1 | v2.0.2 | v1.10.0 |
### Via docker

Docker is an open source application container engine. In the [TensorLayerX Docker Repository](https://hub.docker.com/repository/docker/tensorlayer/tensorlayerx),
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -89,5 +89,5 @@ License

TensorLayerX is released under the Apache 2.0 license.

.. |TENSORLAYER-LOGO| image:: https://git.openi.org.cn/TensorLayer/tensorlayer3.0/src/branch/master/img/tl_transparent_logo.png
.. |TENSORLAYER-LOGO| image:: https://git.openi.org.cn/hanjr/tensorlayerx-image/raw/branch/master/tlx-LOGO--02.jpg
:target: https://tensorlayerx.readthedocs.io/en/latest/
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

MAJOR = 0
MINOR = 5
PATCH = 7
PATCH = 8
PRE_RELEASE = ''
# Use the following formatting: (major, minor, patch, prerelease)
VERSION = (MAJOR, MINOR, PATCH, PRE_RELEASE)
Expand Down
13 changes: 12 additions & 1 deletion tensorlayerx/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

# import backend
from .backend import *

import warnings
import os

from tensorlayerx.package_info import (
Expand Down Expand Up @@ -33,3 +33,14 @@
# global vars
global_flag = {}
global_dict = {}

backend_v = {
'tensorflow': '2.4.0',
'mindspore': '1.8.1',
'paddle': '2.2.0',
'torch': '1.10.0',
}

if BACKEND_VERSION != backend_v[BACKEND]:
warnings.warn("The version of the backend you have installed does not match the specified backend version "
"and may not work, please install version {} {}.".format(BACKEND, backend_v[BACKEND]))
2 changes: 1 addition & 1 deletion tensorlayerx/package_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

MAJOR = 0
MINOR = 5
PATCH = 7
PATCH = 8
PRE_RELEASE = ''
# Use the following formatting: (major, minor, patch, prerelease)
VERSION = (MAJOR, MINOR, PATCH, PRE_RELEASE)
Expand Down

0 comments on commit 2bf117c

Please sign in to comment.