Skip to content

Commit 6729243

Browse files
authored
Merge pull request #1473 from rstudio/retether-3.6.0
Retether to Keras v3.6.0
2 parents f78909c + c70bcba commit 6729243

File tree

472 files changed

+14767
-199
lines changed

Some content is hidden

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

472 files changed

+14767
-199
lines changed

.tether/man/activation_elu.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ keras.activations.elu(x, alpha=1.0)
33
__doc__
44
Exponential Linear Unit.
55

6-
The exponential linear unit (ELU) with `alpha > 0` is define as:
6+
The exponential linear unit (ELU) with `alpha > 0` is defined as:
77

88
- `x` if `x > 0`
99
- alpha * `exp(x) - 1` if `x < 0`
@@ -23,3 +23,4 @@ Args:
2323
Reference:
2424

2525
- [Clevert et al., 2016](https://arxiv.org/abs/1511.07289)
26+

.tether/man/application_densenet121.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ Args:
5353
be applied.
5454
classes: optional number of classes to classify images
5555
into, only to be specified if `include_top` is `True`, and
56-
if no `weights` argument is specified.
56+
if no `weights` argument is specified. Defaults to 1000.
5757
classifier_activation: A `str` or callable.
5858
The activation function to use
5959
on the "top" layer. Ignored unless `include_top=True`. Set

.tether/man/application_densenet169.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ Args:
5353
be applied.
5454
classes: optional number of classes to classify images
5555
into, only to be specified if `include_top` is `True`, and
56-
if no `weights` argument is specified.
56+
if no `weights` argument is specified. Defaults to 1000.
5757
classifier_activation: A `str` or callable.
5858
The activation function to use
5959
on the "top" layer. Ignored unless `include_top=True`. Set

.tether/man/application_densenet201.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ Args:
5353
be applied.
5454
classes: optional number of classes to classify images
5555
into, only to be specified if `include_top` is `True`, and
56-
if no `weights` argument is specified.
56+
if no `weights` argument is specified. Defaults to 1000.
5757
classifier_activation: A `str` or callable.
5858
The activation function to use
5959
on the "top" layer. Ignored unless `include_top=True`. Set

.tether/man/application_resnet101.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ Args:
5353
- `max` means that global max pooling will be applied.
5454
classes: optional number of classes to classify images into, only to be
5555
specified if `include_top` is `True`, and if no `weights` argument is
56-
specified.
56+
specified. Defaults to `1000`.
5757
classifier_activation: A `str` or callable. The activation function to
5858
use on the "top" layer. Ignored unless `include_top=True`. Set
5959
`classifier_activation=None` to return the logits of the "top" layer.

.tether/man/application_resnet152.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ Args:
5353
- `max` means that global max pooling will be applied.
5454
classes: optional number of classes to classify images into, only to be
5555
specified if `include_top` is `True`, and if no `weights` argument is
56-
specified.
56+
specified. Defaults to `1000`.
5757
classifier_activation: A `str` or callable. The activation function to
5858
use on the "top" layer. Ignored unless `include_top=True`. Set
5959
`classifier_activation=None` to return the logits of the "top" layer.

.tether/man/application_resnet50.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ Args:
5353
- `max` means that global max pooling will be applied.
5454
classes: optional number of classes to classify images into, only to be
5555
specified if `include_top` is `True`, and if no `weights` argument is
56-
specified.
56+
specified. Defaults to `1000`.
5757
classifier_activation: A `str` or callable. The activation function to
5858
use on the "top" layer. Ignored unless `include_top=True`. Set
5959
`classifier_activation=None` to return the logits of the "top" layer.

.tether/man/application_xception.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ Args:
5959
be applied.
6060
classes: optional number of classes to classify images
6161
into, only to be specified if `include_top` is `True`, and
62-
if no `weights` argument is specified.
62+
if no `weights` argument is specified. Defaults to `1000`.
6363
classifier_activation: A `str` or callable. The activation function to
6464
use on the "top" layer. Ignored unless `include_top=True`. Set
6565
`classifier_activation=None` to return the logits of the "top"

.tether/man/clone_model.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def clone_function(layer):
8787
config["seed"] = 1337
8888
return layer.__class__.from_config(config)
8989

90-
new_model = clone_model(model)
90+
new_model = clone_model(model, clone_function=clone_function)
9191
```
9292

9393
Using a `call_function` to add a `Dropout` layer after each `Dense` layer

.tether/man/export_savedmodel.keras.src.models.model.Model.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ __signature__
22
keras.Model.export(
33
self,
44
filepath,
5-
format='tf_saved_model'
5+
format='tf_saved_model',
6+
verbose=True
67
)
78
__doc__
89
Create a TF SavedModel artifact for inference.
@@ -22,6 +23,7 @@ entirely standalone.
2223
Args:
2324
filepath: `str` or `pathlib.Path` object. Path where to save
2425
the artifact.
26+
verbose: whether to print all the variables of the exported model.
2527

2628
Example:
2729

0 commit comments

Comments
 (0)