Set the library name based on the version of TensorFlow
PiperOrigin-RevId: 263035092
This commit is contained in:
parent
41e3677707
commit
8693a9eaa3
@ -250,8 +250,13 @@ def build_docs(output_dir, code_url_prefix, search_hints=True):
|
|||||||
"https://github.com/tensorflow/estimator/tree/master/tensorflow_estimator",
|
"https://github.com/tensorflow/estimator/tree/master/tensorflow_estimator",
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if LooseVersion(tf.__version__) < LooseVersion('2'):
|
||||||
|
root_title = 'TensorFlow'
|
||||||
|
elif LooseVersion(tf.__version__) >= LooseVersion('2'):
|
||||||
|
root_title = 'TensorFlow 2.0'
|
||||||
|
|
||||||
doc_generator = generate_lib.DocGenerator(
|
doc_generator = generate_lib.DocGenerator(
|
||||||
root_title="TensorFlow 2.0 Preview",
|
root_title=root_title,
|
||||||
py_modules=[("tf", tf)],
|
py_modules=[("tf", tf)],
|
||||||
base_dir=base_dirs,
|
base_dir=base_dirs,
|
||||||
search_hints=search_hints,
|
search_hints=search_hints,
|
||||||
|
Loading…
Reference in New Issue
Block a user