Skip to content

Commit 9f901e0

Browse files
authored
[research/**.py] Rename "Arguments:" to "Args:" (#9574)
1 parent 11ea523 commit 9f901e0

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

Diff for: research/a3c_blogpost/a3c_cartpole.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def record(episode,
5959
num_steps):
6060
"""Helper function to store score and print statistics.
6161
62-
Arguments:
62+
Args:
6363
episode: Current episode
6464
episode_reward: Reward accumulated over the current episode
6565
worker_idx: Which thread (worker)
@@ -87,7 +87,7 @@ def record(episode,
8787
class RandomAgent:
8888
"""Random Agent that will play the specified game
8989
90-
Arguments:
90+
Args:
9191
env_name: Name of the environment to be played
9292
max_eps: Maximum number of episodes to run agent for.
9393
"""

Diff for: research/deep_speech/decoder.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class DeepSpeechDecoder(object):
3030
def __init__(self, labels, blank_index=28):
3131
"""Decoder initialization.
3232
33-
Arguments:
33+
Args:
3434
labels: a string specifying the speech labels for the decoder to use.
3535
blank_index: an integer specifying index for the blank character.
3636
Defaults to 28.

Diff for: research/object_detection/core/freezable_batch_norm.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class FreezableBatchNorm(tf.keras.layers.BatchNormalization):
3535
i.e. applies a transformation that maintains the mean activation
3636
close to 0 and the activation standard deviation close to 1.
3737
38-
Arguments:
38+
Args:
3939
training: If False, the layer will normalize using the moving average and
4040
std. dev, without updating the learned avg and std. dev.
4141
If None or True, the layer will follow the keras BatchNormalization layer

Diff for: research/object_detection/models/keras_models/base_models/original_mobilenet_v2.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ def _obtain_input_shape(
117117
require_flatten):
118118
"""Internal utility to compute/validate an ImageNet model's input shape.
119119
120-
Arguments:
120+
Args:
121121
input_shape: either None (will return the default network input shape),
122122
or a user-provided shape to be validated.
123123
default_size: default input width/height for the model.
@@ -198,7 +198,7 @@ def preprocess_input(x):
198198
the RGB values from [0, 255] to [-1, 1]. Note that this preprocessing
199199
function is different from `imagenet_utils.preprocess_input()`.
200200
201-
Arguments:
201+
Args:
202202
x: a 4D numpy array consists of RGB values within [0, 255].
203203
204204
Returns:
@@ -237,7 +237,7 @@ def mobilenet_v2(input_shape=None,
237237
model = load_model('mobilenet.h5', custom_objects={
238238
'relu6': mobilenet.relu6})
239239
240-
Arguments:
240+
Args:
241241
input_shape: optional shape tuple, to be specified if you would
242242
like to use a model with an input img resolution that is not
243243
(224, 224, 3).

Diff for: research/object_detection/models/keras_models/resnet_v1.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ def block_basic(x,
408408
name=None):
409409
"""A residual block for ResNet18/34.
410410
411-
Arguments:
411+
Args:
412412
x: input tensor.
413413
filters: integer, filters of the bottleneck layer.
414414
kernel_size: default 3, kernel size of the bottleneck layer.
@@ -465,7 +465,7 @@ def block_basic(x,
465465
def stack_basic(x, filters, blocks, stride1=2, name=None):
466466
"""A set of stacked residual blocks for ResNet18/34.
467467
468-
Arguments:
468+
Args:
469469
x: input tensor.
470470
filters: integer, filters of the bottleneck layer in a block.
471471
blocks: integer, blocks in the stacked blocks.

Diff for: research/slim/nets/mobilenet/mobilenet.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ def __exit__(self, exc_type, exc_value, traceback):
127127
def safe_arg_scope(funcs, **kwargs):
128128
"""Returns `slim.arg_scope` with all None arguments removed.
129129
130-
Arguments:
130+
Args:
131131
funcs: Functions to pass to `arg_scope`.
132132
**kwargs: Arguments to pass to `arg_scope`.
133133

0 commit comments

Comments
 (0)