Skip to content

Commit f8622ce

Browse files
committed
[keras/applications/convnext.py] Revert changes to this file as this branch telos is a one-file change
1 parent 7b1b04a commit f8622ce

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

keras/applications/convnext.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@
124124
125125
Args:
126126
include_top: Whether to include the fully-connected
127-
layer at the top of the network. Defaults to `True`.
127+
layer at the top of the network. Defaults to True.
128128
weights: One of `None` (random initialization),
129129
`"imagenet"` (pre-training on ImageNet-1k), or the path to the weights
130130
file to be loaded. Defaults to `"imagenet"`.
@@ -135,7 +135,7 @@
135135
if `include_top` is False.
136136
It should have exactly 3 inputs channels.
137137
pooling: Optional pooling mode for feature extraction
138-
when `include_top` is `False`.
138+
when `include_top` is `False`. Defaults to None.
139139
- `None` means that the output of the model will be
140140
the 4D tensor output of the last convolutional layer.
141141
- `avg` means that global average pooling
@@ -144,16 +144,16 @@
144144
the output of the model will be a 2D tensor.
145145
- `max` means that global max pooling will
146146
be applied.
147-
Defaults to `None`.
148147
classes: Optional number of classes to classify images
149148
into, only to be specified if `include_top` is True, and
150-
if no `weights` argument is specified. 1000 is how many
151-
ImageNet classes there are. Defaults to `1000`.
149+
if no `weights` argument is specified. Defaults to 1000 (number of
150+
ImageNet classes).
152151
classifier_activation: A `str` or callable. The activation function to use
153152
on the "top" layer. Ignored unless `include_top=True`. Set
154153
`classifier_activation=None` to return the logits of the "top" layer.
154+
Defaults to `"softmax"`.
155155
When loading pretrained weights, `classifier_activation` can only
156-
be `None` or `"softmax"`. Defaults to `"softmax"`.
156+
be `None` or `"softmax"`.
157157
158158
Returns:
159159
A `keras.Model` instance.
@@ -754,10 +754,10 @@ def preprocess_input(x, data_format=None):
754754
755755
Args:
756756
x: A floating point `numpy.array` or a `tf.Tensor`.
757-
data_format: Optional data format of the image tensor/array. `None` means
758-
the global setting `tf.keras.backend.image_data_format()` is used
759-
(unless you changed it, it uses "channels_last").{mode}.
760-
Defaults to `None`.
757+
data_format: Optional data format of the image tensor/array. Defaults to
758+
None, in which case the global setting
759+
`tf.keras.backend.image_data_format()` is used (unless you changed it,
760+
it defaults to "channels_last").{mode}
761761
762762
Returns:
763763
Unchanged `numpy.array` or `tf.Tensor`.

0 commit comments

Comments
 (0)