-
Notifications
You must be signed in to change notification settings - Fork 367
/
Copy path__init__.py
52 lines (47 loc) · 2.05 KB
/
__init__.py
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
# Copyright 2020 The TensorFlow Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""tensorflow_graphics module."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
# pylint: disable=g-statement-before-imports,g-import-not-at-top
try:
import tensorflow as tf
except ImportError:
print("Warning: TensorFlow is not installed when you install TensorFlow"
" Graphics. To use TensorFlow Graphics, please install TensorFlow, by"
" following instructions at https://tensorflow.org/install or by using"
" pip install tensorflow_graphics[tf] or"
" pip install tensorflow_graphics[tf-gpu].")
# pylint: enable=g-statement-before-imports,g-import-not-at-top
# pylint: disable=g-statement-before-imports,g-import-not-at-top,ungrouped-imports
from tensorflow_graphics.util.doc import _import_tfg_docs
if _import_tfg_docs():
from tensorflow_graphics import datasets
from tensorflow_graphics import geometry
from tensorflow_graphics import image
from tensorflow_graphics import math
from tensorflow_graphics import nn
from tensorflow_graphics import notebooks
from tensorflow_graphics import projects
from tensorflow_graphics import rendering
from tensorflow_graphics import util
# submodules of tensorflow_graphics
__all__ = util.export_api.get_modules()
# Remove modules projects, notebooks, util and version from API.
__all__.remove("projects")
__all__.remove("notebooks")
__all__.remove("util")
# pylint: enable=g-statement-before-imports,g-import-not-at-top
__version__ = "HEAD"