You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**TensorFlow Addons** is a repository of contributions that conform to
23
23
well-established API patterns, but implement new functionality
@@ -113,9 +113,39 @@ TF-Addons. In order to achieve these we require that our additions
113
113
conform to established API patterns seen in core TensorFlow.
114
114
115
115
#### GPU/CPU Custom-Ops
116
-
A major benefit of TensorFlow Addons is that there are precompiled ops. Should
117
-
a CUDA 10.1 installation not be found then the op will automatically fall back to
118
-
a CPU implementation.
116
+
A major benefit of TensorFlow Addons is that there are precompiled ops for CPU/GPU.
117
+
Currently however, GPU custom ops only work for Linux distributions. For this reason Windows and MacOS will fallback to pure TensorFlow Python implementations whenever possible.
118
+
119
+
The order of priority in MacOS/Windows:
120
+
1) Pure TensorFlow + Python implementation (work on cpu+gpu)
121
+
2) C++ implementation for CPU
122
+
123
+
The order of priority for Linux:
124
+
1) CUDA implementation
125
+
2) C++ implementation
126
+
3) Pure TensorFlow + Python implementation (work on cpu+gpu)
127
+
128
+
If you want to change the default priority, "C++ and CUDA" VS "pure TF Python",
129
+
you can either set the variable `TF_ADDONS_PY_OPS` from the command line or in
130
+
your code.
131
+
132
+
For example, if you're on linux and you have compatibility problems with the compiled ops,
133
+
and you want to give priority to the Python implementation
134
+
you can do:
135
+
136
+
From the command line:
137
+
```
138
+
export TF_ADDONS_PY_OPS=1
139
+
```
140
+
141
+
or in your code:
142
+
143
+
```
144
+
import tensorflow_addons as tfa
145
+
tfa.options.TF_ADDONS_PY_OPS=True
146
+
```
147
+
148
+
This variable will default to `True` on Windows and Mac, and `False` for Linux.
119
149
120
150
#### Proxy Maintainership
121
151
Addons has been designed to compartmentalize subpackages and submodules so
0 commit comments