Skip to content

Commit f458edc

Browse files
hertschuhtensorflower-gardener
authored andcommitted
Fix URLs to tensorflow.org guides.
In the process of renaming `keras` to `tf_keras`, the URLs to tensorflow.org were modified too. Revert them so that they actually point to the guides. PiperOrigin-RevId: 592303600
1 parent 3c9a51b commit f458edc

33 files changed

+74
-74
lines changed

tf_keras/backend_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def set_floatx(value):
8888
is using a mix of float16 and float32, can be used by calling
8989
`tf.keras.mixed_precision.set_global_policy('mixed_float16')`. See the
9090
[mixed precision guide](
91-
https://www.tensorflow.org/guide/tf_keras/mixed_precision) for details.
91+
https://www.tensorflow.org/guide/keras/mixed_precision) for details.
9292
9393
Args:
9494
value: String; `'float16'`, `'float32'`, or `'float64'`.

tf_keras/engine/base_layer.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -190,11 +190,11 @@ class Layer(tf.Module, version_utils.LayerVersionSelector):
190190
Two reserved keyword arguments you can optionally use in `call()` are:
191191
- `training` (boolean, whether the call is in inference mode or training
192192
mode). See more details in [the layer/model subclassing guide](
193-
https://www.tensorflow.org/guide/tf_keras/custom_layers_and_models#privileged_training_argument_in_the_call_method)
193+
https://www.tensorflow.org/guide/keras/custom_layers_and_models#privileged_training_argument_in_the_call_method)
194194
- `mask` (boolean tensor encoding masked timesteps in the input, used
195195
in RNN layers). See more details in
196196
[the layer/model subclassing guide](
197-
https://www.tensorflow.org/guide/tf_keras/custom_layers_and_models#privileged_mask_argument_in_the_call_method)
197+
https://www.tensorflow.org/guide/keras/custom_layers_and_models#privileged_mask_argument_in_the_call_method)
198198
A typical signature for this method is `call(self, inputs)`, and user
199199
could optionally add `training` and `mask` if the layer need them. `*args`
200200
and `**kwargs` is only useful for future extension when more input
@@ -300,7 +300,7 @@ def call(self, inputs):
300300
301301
For more information about creating layers, see the guide
302302
[Making new Layers and Models via subclassing](
303-
https://www.tensorflow.org/guide/tf_keras/custom_layers_and_models)
303+
https://www.tensorflow.org/guide/keras/custom_layers_and_models)
304304
"""
305305

306306
@tf.__internal__.tracking.no_automatic_dependency_tracking

tf_keras/engine/training.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,7 @@ def call(self, inputs, training=None, mask=None):
606606
run the `Network` in training mode or inference mode.
607607
mask: A mask or list of masks. A mask can be either a boolean tensor
608608
or None (no mask). For more details, check the guide
609-
[here](https://www.tensorflow.org/guide/tf_keras/masking_and_padding).
609+
[here](https://www.tensorflow.org/guide/keras/masking_and_padding).
610610
611611
Returns:
612612
A tensor if there is a single output, or
@@ -1121,7 +1121,7 @@ def train_step(self, data):
11211121
This method can be overridden to support custom training logic.
11221122
For concrete examples of how to override this method see
11231123
[Customizing what happens in fit](
1124-
https://www.tensorflow.org/guide/tf_keras/customizing_what_happens_in_fit).
1124+
https://www.tensorflow.org/guide/keras/customizing_what_happens_in_fit).
11251125
This method is called by `Model.make_train_function`.
11261126
11271127
This method should contain the mathematical logic for one step of

tf_keras/layers/core/lambda_layer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class Lambda(Layer):
4242
and Functional API models. `Lambda` layers are best suited for simple
4343
operations or quick experimentation. For more advanced use cases, follow
4444
[this guide](
45-
https://www.tensorflow.org/guide/tf_keras/custom_layers_and_models)
45+
https://www.tensorflow.org/guide/keras/custom_layers_and_models)
4646
for subclassing `tf.keras.layers.Layer`.
4747
4848
WARNING: `tf.keras.layers.Lambda` layers have (de)serialization limitations!

tf_keras/layers/core/masking.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ class Masking(Layer):
6060
```
6161
6262
See [the masking and padding guide](
63-
https://www.tensorflow.org/guide/tf_keras/masking_and_padding)
63+
https://www.tensorflow.org/guide/keras/masking_and_padding)
6464
for more details.
6565
"""
6666

tf_keras/layers/preprocessing/category_encoding.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class CategoryEncoding(base_layer.Layer):
4646
use `tf.keras.layers.IntegerLookup` instead.
4747
4848
For an overview and full list of preprocessing layers, see the preprocessing
49-
[guide](https://www.tensorflow.org/guide/tf_keras/preprocessing_layers).
49+
[guide](https://www.tensorflow.org/guide/keras/preprocessing_layers).
5050
5151
Examples:
5252

tf_keras/layers/preprocessing/discretization.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ class Discretization(base_preprocessing_layer.PreprocessingLayer):
145145
element was placed in.
146146
147147
For an overview and full list of preprocessing layers, see the preprocessing
148-
[guide](https://www.tensorflow.org/guide/tf_keras/preprocessing_layers).
148+
[guide](https://www.tensorflow.org/guide/keras/preprocessing_layers).
149149
150150
Input shape:
151151
Any `tf.Tensor` or `tf.RaggedTensor` of dimension 2 or higher.

tf_keras/layers/preprocessing/hashed_crossing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class HashedCrossing(base_layer.Layer):
4646
`()`.
4747
4848
For an overview and full list of preprocessing layers, see the preprocessing
49-
[guide](https://www.tensorflow.org/guide/tf_keras/preprocessing_layers).
49+
[guide](https://www.tensorflow.org/guide/keras/preprocessing_layers).
5050
5151
Args:
5252
num_bins: Number of hash bins.

tf_keras/layers/preprocessing/hashing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class Hashing(base_layer.Layer):
5353
the `salt` value serving as additional input to the hash function.
5454
5555
For an overview and full list of preprocessing layers, see the preprocessing
56-
[guide](https://www.tensorflow.org/guide/tf_keras/preprocessing_layers).
56+
[guide](https://www.tensorflow.org/guide/keras/preprocessing_layers).
5757
5858
**Example (FarmHash64)**
5959

tf_keras/layers/preprocessing/image_preprocessing.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class Resizing(base_layer.Layer):
5858
size.
5959
6060
For an overview and full list of preprocessing layers, see the preprocessing
61-
[guide](https://www.tensorflow.org/guide/tf_keras/preprocessing_layers).
61+
[guide](https://www.tensorflow.org/guide/keras/preprocessing_layers).
6262
6363
Args:
6464
height: Integer, the height of the output shape.
@@ -162,7 +162,7 @@ class CenterCrop(base_layer.Layer):
162162
By default, the layer will output floats.
163163
164164
For an overview and full list of preprocessing layers, see the preprocessing
165-
[guide](https://www.tensorflow.org/guide/tf_keras/preprocessing_layers).
165+
[guide](https://www.tensorflow.org/guide/keras/preprocessing_layers).
166166
167167
Input shape:
168168
3D (unbatched) or 4D (batched) tensor with shape:
@@ -247,7 +247,7 @@ class RandomCrop(base_layer.BaseRandomLayer):
247247
floats.
248248
249249
For an overview and full list of preprocessing layers, see the preprocessing
250-
[guide](https://www.tensorflow.org/guide/tf_keras/preprocessing_layers).
250+
[guide](https://www.tensorflow.org/guide/keras/preprocessing_layers).
251251
252252
Input shape:
253253
3D (unbatched) or 4D (batched) tensor with shape:
@@ -340,7 +340,7 @@ class Rescaling(base_layer.Layer):
340340
floats.
341341
342342
For an overview and full list of preprocessing layers, see the preprocessing
343-
[guide](https://www.tensorflow.org/guide/tf_keras/preprocessing_layers).
343+
[guide](https://www.tensorflow.org/guide/keras/preprocessing_layers).
344344
345345
Input shape:
346346
Arbitrary.
@@ -399,7 +399,7 @@ class RandomFlip(base_layer.BaseRandomLayer):
399399
By default, the layer will output floats.
400400
401401
For an overview and full list of preprocessing layers, see the preprocessing
402-
[guide](https://www.tensorflow.org/guide/tf_keras/preprocessing_layers).
402+
[guide](https://www.tensorflow.org/guide/keras/preprocessing_layers).
403403
404404
Input shape:
405405
3D (unbatched) or 4D (batched) tensor with shape:
@@ -500,7 +500,7 @@ class RandomTranslation(base_layer.BaseRandomLayer):
500500
floats.
501501
502502
For an overview and full list of preprocessing layers, see the preprocessing
503-
[guide](https://www.tensorflow.org/guide/tf_keras/preprocessing_layers).
503+
[guide](https://www.tensorflow.org/guide/keras/preprocessing_layers).
504504
505505
Args:
506506
height_factor: a float represented as fraction of value, or a tuple of
@@ -872,7 +872,7 @@ class RandomRotation(base_layer.BaseRandomLayer):
872872
By default, the layer will output floats.
873873
874874
For an overview and full list of preprocessing layers, see the preprocessing
875-
[guide](https://www.tensorflow.org/guide/tf_keras/preprocessing_layers).
875+
[guide](https://www.tensorflow.org/guide/keras/preprocessing_layers).
876876
877877
Input shape:
878878
3D (unbatched) or 4D (batched) tensor with shape:
@@ -1014,7 +1014,7 @@ class RandomZoom(base_layer.BaseRandomLayer):
10141014
By default, the layer will output floats.
10151015
10161016
For an overview and full list of preprocessing layers, see the preprocessing
1017-
[guide](https://www.tensorflow.org/guide/tf_keras/preprocessing_layers).
1017+
[guide](https://www.tensorflow.org/guide/keras/preprocessing_layers).
10181018
10191019
Args:
10201020
height_factor: a float represented as fraction of value,
@@ -1254,7 +1254,7 @@ class RandomContrast(base_layer.BaseRandomLayer):
12541254
range of RGB colors.
12551255
12561256
For an overview and full list of preprocessing layers, see the preprocessing
1257-
[guide](https://www.tensorflow.org/guide/tf_keras/preprocessing_layers).
1257+
[guide](https://www.tensorflow.org/guide/keras/preprocessing_layers).
12581258
12591259
Input shape:
12601260
3D (unbatched) or 4D (batched) tensor with shape:
@@ -1340,7 +1340,7 @@ class RandomBrightness(base_layer.BaseRandomLayer):
13401340
will be apply to each the images in the batch.
13411341
13421342
For an overview and full list of preprocessing layers, see the preprocessing
1343-
[guide](https://www.tensorflow.org/guide/tf_keras/preprocessing_layers).
1343+
[guide](https://www.tensorflow.org/guide/keras/preprocessing_layers).
13441344
13451345
Args:
13461346
factor: Float or a list/tuple of 2 floats between -1.0 and 1.0. The
@@ -1497,7 +1497,7 @@ class RandomHeight(base_layer.BaseRandomLayer):
14971497
By default, this layer is inactive during inference.
14981498
14991499
For an overview and full list of preprocessing layers, see the preprocessing
1500-
[guide](https://www.tensorflow.org/guide/tf_keras/preprocessing_layers).
1500+
[guide](https://www.tensorflow.org/guide/keras/preprocessing_layers).
15011501
15021502
Args:
15031503
factor: A positive float (fraction of original height),
@@ -1616,7 +1616,7 @@ class RandomWidth(base_layer.BaseRandomLayer):
16161616
By default, this layer is inactive during inference.
16171617
16181618
For an overview and full list of preprocessing layers, see the preprocessing
1619-
[guide](https://www.tensorflow.org/guide/tf_keras/preprocessing_layers).
1619+
[guide](https://www.tensorflow.org/guide/keras/preprocessing_layers).
16201620
16211621
Args:
16221622
factor: A positive float (fraction of original width),

0 commit comments

Comments
 (0)