forked from tensorlayer/TensorLayer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path__init__.py
More file actions
57 lines (47 loc) · 1.84 KB
/
Copy path__init__.py
File metadata and controls
57 lines (47 loc) · 1.84 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Deep learning and Reinforcement learning library for Researchers and Engineers"""
from __future__ import absolute_import
try:
import tensorflow
from . import activation
from . import array_ops
from . import cost
from . import distributed
from . import files
from . import iterate
from . import layers
from . import models
from . import nlp
from . import optimizers
from . import prepro
from . import rein
from . import utils
from . import visualize
# alias
act = activation
vis = visualize
alphas = array_ops.alphas
alphas_like = array_ops.alphas_like
# global vars
global_flag = {}
global_dict = {}
except Exception as e:
import pkg_resources
installed_packages = [d for d in pkg_resources.working_set]
for package in installed_packages:
if 'tensorlayer' in package.project_name and 'site-packages' in package.location:
raise ImportError("__init__.py : Could not import TensorLayer.\nError: {}".format(e))
# Use the following formating: (major, minor, patch, prerelease)
VERSION = (1, 8, 5)
__shortversion__ = '.'.join(map(str, VERSION[:3]))
__version__ = '.'.join(map(str, VERSION[:3])) + "".join(VERSION[3:])
__package_name__ = 'tensorlayer'
__contact_names__ = 'TensorLayer Contributors'
__homepage__ = 'http://tensorlayer.readthedocs.io/en/latest/'
__repository_url__ = 'https://github.com/tensorlayer/tensorlayer'
__download_url__ = 'https://github.com/tensorlayer/tensorlayer'
__description__ = 'Reinforcement Learning and Deep Learning Library for Researcher and Engineer.'
__license__ = 'apache'
__keywords__ = 'deep learning, machine learning, computer vision, nlp, supervised learning, unsupervised learning, reinforcement learning, tensorflow'