Skip to main content

TENSORLAYER-LOGO

TensorLayer3 is a deep learning library designed for researchers and engineers that is compatible with multiple deep learning frameworks such as TensorFlow, MindSpore and PaddlePaddle, allowing users to run the code on different hardware like Nvidia-GPU and Huawei-Ascend. It provides popular DL and RL modules that can be easily customized and assembled for tackling real-world machine learning problems. More details can be found here. TensorLayer3 will support TensorFlow, MindSpore, PaddlePaddle, and PyTorch backends in the future.

Install

TensorLayer3 has some prerequisites that need to be installed first, including TensorFlow , MindSpore, PaddlePaddle,numpy and matplotlib.For GPU support CUDA and cuDNN are required.

# for last stable version
pip install --upgrade tensorlayer3

# for latest release candidate
pip install --upgrade --pre tensorlayer3

# if you want to install the additional dependencies, you can also run
pip install --upgrade tensorlayer3[all]              # all additional dependencies
pip install --upgrade tensorlayer3[extra]            # only the `extra` dependencies
pip install --upgrade tensorlayer3[contrib_loggers]  # only the `contrib_loggers` dependencies

Alternatively, you can install the latest or development version by directly pulling from OpenI:

pip3 install git+https://git.openi.org.cn/TensorLayer/tensorlayer3.0.git

Containers with CPU support

# for CPU version and Python 2
docker pull tensorlayer/tensorlayer:latest
docker run -it --rm -p 8888:8888 -p 6006:6006 -e PASSWORD=JUPYTER_NB_PASSWORD tensorlayer/tensorlayer:latest

# for CPU version and Python 3
docker pull tensorlayer/tensorlayer:latest-py3
docker run -it --rm -p 8888:8888 -p 6006:6006 -e PASSWORD=JUPYTER_NB_PASSWORD tensorlayer/tensorlayer:latest-py3

Containers with GPU support

NVIDIA-Docker is required for these containers to work: Project Link

# for GPU version and Python 2
docker pull tensorlayer/tensorlayer:latest-gpu
nvidia-docker run -it --rm -p 8888:88888 -p 6006:6006 -e PASSWORD=JUPYTER_NB_PASSWORD tensorlayer/tensorlayer:latest-gpu

# for GPU version and Python 3
docker pull tensorlayer/tensorlayer:latest-gpu-py3
nvidia-docker run -it --rm -p 8888:8888 -p 6006:6006 -e PASSWORD=JUPYTER_NB_PASSWORD tensorlayer/tensorlayer:latest-gpu-py3

Contribute

Please read the Contributor Guideline before submitting your PRs.

Cite

If you find this project useful, we would be grateful if you cite the TensorLayer papers.

@article{tensorlayer2017,
    author  = {Dong, Hao and Supratak, Akara and Mai, Luo and Liu, Fangde and Oehmichen, Axel and Yu, Simiao and Guo, Yike},
    journal = {ACM Multimedia},
    title   = {{TensorLayer: A Versatile Library for Efficient Deep Learning Development}},
    url     = {http://tensorlayer.org},
    year    = {2017}
}
@inproceedings{tensorlayer2021,
    title={Tensorlayer 3.0: A Deep Learning Library Compatible With Multiple Backends},
    author={Lai, Cheng and Han, Jiarong and Dong, Hao},
    booktitle={2021 IEEE International Conference on Multimedia \& Expo Workshops (ICMEW)},
    pages={1--3},
    year={2021},
    organization={IEEE}
}

License

TensorLayer3 is released under the Apache 2.0 license.

Metadata

Release files for tensorlayer3 1.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tensorlayer3 1.2.0
File Size Uploaded
tensorlayer3-1.2.0.tar.gz 364.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for tensorlayer3 1.2.0
File Interpreter ABI Platform
tensorlayer3-1.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 869.1 kB

Release files / tensorlayer3-1.2.0.tar.gz

Download URL tensorlayer3-1.2.0.tar.gz
Size 364.3 kB
Tags Source
SHA-256 checksum
How to use checksums
b8556cc6941b74a8749e3cffd328ddba52c1565a2500c3ca2fc366068a50ccd5
BLAKE2b-256 checksum
How to use checksums
523259af386fa8293061e91ef36d48ed4bc8063f5794e28401aebec7fd27ca74
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Python-urllib/3.6

Release files / tensorlayer3-1.2.0-py3-none-any.whl

Download URL tensorlayer3-1.2.0-py3-none-any.whl
Size 504.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
37e9a6ec94898ededcb9acdc89dff7b0a793557c04fce259ef6ed04cbeec952f
BLAKE2b-256 checksum
How to use checksums
3c9689c5f3e458516d10be4d4de20e4ad9b7dbf2b2c8c1563746744429656852
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Python-urllib/3.6

Release history Release notifications | RSS feed

This release

1.2.0 This release

2 release files

1.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page