File tree Expand file tree Collapse file tree 2 files changed +16
-2
lines changed
tensorflow_model_optimization Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Original file line number Diff line number Diff line change 12
12
# See the License for the specific language governing permissions and
13
13
# limitations under the License.
14
14
# ==============================================================================
15
- """Tool to generate external api_docs for tensorflow_model_optimization.
15
+ """Tool to generate open source api_docs for tensorflow_model_optimization.
16
+
17
+ To use, you must first install the tensorflow docs package:
18
+
19
+ pip install git+https://github.com/tensorflow/docs
20
+
16
21
17
22
Note:
18
23
If duplicate or spurious docs are generated (e.g. internal names), consider
32
37
33
38
import tensorflow_model_optimization as tfmot
34
39
35
-
36
40
flags .DEFINE_string ("output_dir" , "/tmp/model_optimization_api" ,
37
41
"Where to output the docs" )
38
42
Original file line number Diff line number Diff line change @@ -25,3 +25,13 @@ py_library(
25
25
"//tensorflow_model_optimization/python/core/sparsity" ,
26
26
],
27
27
)
28
+
29
+ py_binary (
30
+ name = "build_docs" ,
31
+ srcs = ["build_docs.py" ],
32
+ python_version = "PY3" ,
33
+ deps = [
34
+ # tensorflow_docs/api_generator:generate_lib dep1,
35
+ "//third_party/tensorflow_model_optimization" ,
36
+ ],
37
+ )
You can’t perform that action at this time.
0 commit comments