Skip to content

Commit 0fc9db1

Browse files
authored
Merge branch 'master' into master
2 parents 8903008 + ad55dbd commit 0fc9db1

File tree

218 files changed

+32451
-6468
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

218 files changed

+32451
-6468
lines changed

.github/workflows/bot-label-lgtm.yaml

Lines changed: 0 additions & 51 deletions
This file was deleted.

.github/workflows/bot-nightly.yaml

Lines changed: 0 additions & 69 deletions
This file was deleted.

.github/workflows/bot-pr-fix.yaml

Lines changed: 0 additions & 54 deletions
This file was deleted.

CODEOWNERS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,6 @@
99

1010
# Community
1111
/site/en/community/ @ewilderj @theadactyl @joanafilipa
12+
13+
# Hub
14+
/site/en/hub @gustheman

LICENSE

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,3 +201,28 @@ Copyright 2018 The TensorFlow Authors. All rights reserved.
201201
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
202202
See the License for the specific language governing permissions and
203203
limitations under the License.
204+
205+
206+
---------------------------
207+
208+
Where indicated, some files are also distributed under the MIT License:
209+
210+
MIT License
211+
212+
Permission is hereby granted, free of charge, to any person obtaining a
213+
copy of this software and associated documentation files (the "Software"),
214+
to deal in the Software without restriction, including without limitation
215+
the rights to use, copy, modify, merge, publish, distribute, sublicense,
216+
and/or sell copies of the Software, and to permit persons to whom the
217+
Software is furnished to do so, subject to the following conditions:
218+
219+
The above copyright notice and this permission notice shall be included in
220+
all copies or substantial portions of the Software.
221+
222+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
223+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
224+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
225+
THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
226+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
227+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
228+
DEALINGS IN THE SOFTWARE.

setup.py

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,30 @@
1414
# ==============================================================================
1515
"""tensorflow_docs is a package for generating python api-reference docs."""
1616

17+
import datetime
18+
import subprocess
1719
import sys
1820

1921
from setuptools import find_packages
2022
from setuptools import setup
2123

2224
project_name = 'tensorflow-docs'
23-
version = '0.0.0.dev0'
25+
26+
27+
def get_version() -> str:
28+
ts = int(
29+
subprocess.check_output(['git', 'log', '-1', '--format=%ct', 'tools'])
30+
.decode('utf-8')
31+
.strip()
32+
)
33+
dt = datetime.datetime.utcfromtimestamp(ts)
34+
sec = 60 * 60 * dt.hour + 60 * dt.minute + dt.second
35+
36+
# calver.org
37+
return f'{dt.year}.{dt.month}.{dt.day}.{sec}'
38+
39+
40+
version = get_version()
2441

2542
DOCLINES = __doc__.split('\n')
2643

@@ -33,10 +50,6 @@
3350
'pyyaml',
3451
]
3552

36-
# Dataclasses is in-built from py >=3.7. This version is a backport for py 3.6.
37-
if (sys.version_info.major, sys.version_info.minor) == (3, 6):
38-
REQUIRED_PKGS.append('dataclasses')
39-
4053
VIS_REQUIRE = [
4154
'numpy',
4255
'PILLOW',
@@ -46,6 +59,7 @@
4659
# https://setuptools.readthedocs.io/en/latest/setuptools.html#new-and-changed-setup-keywords
4760
setup(
4861
name=project_name,
62+
python_requires='>=3.9',
4963
version=version,
5064
description=DOCLINES[0],
5165
long_description='\n'.join(DOCLINES[2:]),

site/en/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ tensorflow.org project | GitHub docs location
3939
[/ranking](https://www.tensorflow.org/ranking) | https://github.com/tensorflow/ranking/tree/master/docs
4040
[/recommenders](https://www.tensorflow.org/recommenders) | https://github.com/tensorflow/recommenders/tree/main/docs
4141
[/responsible_ai/fairness_indicators](https://www.tensorflow.org/responsible_ai/fairness_indicators/guide) | https://github.com/tensorflow/fairness-indicators/tree/master/g3doc
42-
[/responsible_ai/model_card_toolkit](https://www.tensorflow.org/responsible_ai/model_card_toolkit/guide) | https://github.com/tensorflow/model-card-toolkit/tree/master/model_card_toolkit/documentation
42+
[/responsible_ai/model_card_toolkit](https://www.tensorflow.org/responsible_ai/model_card_toolkit/guide) | https://github.com/tensorflow/model-card-toolkit/tree/main/model_card_toolkit/documentation
4343
[/responsible_ai/model_remediation](https://www.tensorflow.org/responsible_ai/model_remediation) | https://github.com/tensorflow/model-remediation/tree/master/docs
4444
[/responsible_ai/privacy](https://www.tensorflow.org/responsible_ai/privacy/guide) | https://github.com/tensorflow/privacy/tree/master/g3doc
4545
[/tensorboard](https://www.tensorflow.org/tensorboard) | https://github.com/tensorflow/tensorboard/tree/master/docs

site/en/community/sig_playbook.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ must demonstrate:
5555
application area)
5656
* Two or more contributors willing to act as group leads, existence of other
5757
contributors, and evidence of demand for the group
58-
* Resources it will initially require (usually, mailing list and regular VC
58+
* Resources it will initially require (usually, mailing list and regular video conference
5959
call.)
6060

6161
Approval for the group will be given by a decision of the TF Community Team,

site/en/guide/_toc.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ toc:
1919
path: /guide/basic_training_loops
2020

2121
- heading: "Keras"
22+
- title: "Overview"
23+
path: /guide/keras
2224
- include: /guide/keras/_toc.yaml
2325

2426
- heading: "Build with Core"
@@ -53,6 +55,9 @@ toc:
5355
- title: "NumPy API"
5456
status: experimental
5557
path: /guide/tf_numpy
58+
- title: "NumPy API Type Promotion"
59+
status: nightly
60+
path: /guide/tf_numpy_type_promotion
5661
- title: "DTensor concepts"
5762
path: /guide/dtensor_overview
5863
status: experimental
@@ -74,11 +79,14 @@ toc:
7479
- title: "Analyze pipeline performance"
7580
path: /guide/data_performance_analysis
7681

77-
- heading: "Save a model"
82+
- heading: "Import and export"
7883
- title: "Checkpoint"
7984
path: /guide/checkpoint
8085
- title: "SavedModel"
8186
path: /guide/saved_model
87+
- title: "Import a JAX model using JAX2TF"
88+
status: new
89+
path: /guide/jax2tf
8290

8391
- heading: "Accelerators"
8492
- title: "Distributed training"

site/en/guide/basics.ipynb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -784,7 +784,7 @@
784784
"id": "7EWyDu3zot2w"
785785
},
786786
"source": [
787-
"Write a basic training loop for the model. The loop will make use of the MSE loss function and its gradients with respect to the input in order to iteratively update the model's parameters. Using mini-batches for training provides both memory efficienciy and faster convergence. The `tf.data.Dataset` API has useful functions for batching and shuffling."
787+
"Write a basic training loop for the model. The loop will make use of the MSE loss function and its gradients with respect to the input in order to iteratively update the model's parameters. Using mini-batches for training provides both memory efficiency and faster convergence. The `tf.data.Dataset` API has useful functions for batching and shuffling."
788788
]
789789
},
790790
{
@@ -956,7 +956,6 @@
956956
"colab": {
957957
"collapsed_sections": [],
958958
"name": "basics.ipynb",
959-
"provenance": [],
960959
"toc_visible": true
961960
},
962961
"kernelspec": {

0 commit comments

Comments
 (0)