Skip to content
This repository has been archived by the owner on Nov 3, 2022. It is now read-only.

[*.py] Rename "Arguments:" to "Args:" #550

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions keras_contrib/applications/nasnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -590,7 +590,7 @@ def _separable_conv_block(ip, filters, kernel_size=(3, 3), strides=(1, 1),
weight_decay=5e-5, id=None):
'''Adds 2 blocks of [relu-separable conv-batchnorm]

# Arguments:
# Args:
ip: input tensor
filters: number of output filters per layer
kernel_size: kernel size of separable convolutions
Expand Down Expand Up @@ -629,7 +629,7 @@ def _adjust_block(p, ip, filters, weight_decay=5e-5, id=None):
or situations where the output number of filters needs to
be changed

# Arguments:
# Args:
p: input tensor which needs to be modified
ip: input tensor whose shape needs to be matched
filters: number of output filters to be matched
Expand Down Expand Up @@ -687,7 +687,7 @@ def _adjust_block(p, ip, filters, weight_decay=5e-5, id=None):
def _normal_A(ip, p, filters, weight_decay=5e-5, id=None):
'''Adds a Normal cell for NASNet-A (Fig. 4 in the paper)

# Arguments:
# Args:
ip: input tensor `x`
p: input tensor `p`
filters: number of output filters
Expand Down Expand Up @@ -750,7 +750,7 @@ def _normal_A(ip, p, filters, weight_decay=5e-5, id=None):
def _reduction_A(ip, p, filters, weight_decay=5e-5, id=None):
'''Adds a Reduction cell for NASNet-A (Fig. 4 in the paper)

# Arguments:
# Args:
ip: input tensor `x`
p: input tensor `p`
filters: number of output filters
Expand Down
4 changes: 2 additions & 2 deletions keras_contrib/callbacks/snapshot.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class SnapshotModelCheckpoint(Callback):
Should be used with the cosine annealing learning rate schedule to save
the weight just before learning rate is sharply increased.

# Arguments:
# Args:
nb_epochs: total number of epochs that the model will be trained for.
nb_snapshots: number of times the weights of the model will be saved.
fn_prefix: prefix for the filename of the weights.
Expand Down Expand Up @@ -55,7 +55,7 @@ def __init__(self, nb_epochs, nb_snapshots, init_lr=0.1):
"""
Initialize a snapshot callback builder.

# Arguments:
# Args:
nb_epochs: total number of epochs that the model will be trained for.
nb_snapshots: number of times the weights of the model will be saved.
init_lr: initial learning rate
Expand Down