"python/README.md" did not exist on "bb9531b29c3699be1eb9d4ad79a39b538ebe8a21"
Unverified Commit 9f901e08 authored by Samuel Marks's avatar Samuel Marks Committed by GitHub
Browse files

[research/**.py] Rename "Arguments:" to "Args:" (#9574)

parent 11ea5237
......@@ -59,7 +59,7 @@ def record(episode,
num_steps):
"""Helper function to store score and print statistics.
Arguments:
Args:
episode: Current episode
episode_reward: Reward accumulated over the current episode
worker_idx: Which thread (worker)
......@@ -87,7 +87,7 @@ def record(episode,
class RandomAgent:
"""Random Agent that will play the specified game
Arguments:
Args:
env_name: Name of the environment to be played
max_eps: Maximum number of episodes to run agent for.
"""
......
......@@ -30,7 +30,7 @@ class DeepSpeechDecoder(object):
def __init__(self, labels, blank_index=28):
"""Decoder initialization.
Arguments:
Args:
labels: a string specifying the speech labels for the decoder to use.
blank_index: an integer specifying index for the blank character.
Defaults to 28.
......
......@@ -35,7 +35,7 @@ class FreezableBatchNorm(tf.keras.layers.BatchNormalization):
i.e. applies a transformation that maintains the mean activation
close to 0 and the activation standard deviation close to 1.
Arguments:
Args:
training: If False, the layer will normalize using the moving average and
std. dev, without updating the learned avg and std. dev.
If None or True, the layer will follow the keras BatchNormalization layer
......
......@@ -117,7 +117,7 @@ def _obtain_input_shape(
require_flatten):
"""Internal utility to compute/validate an ImageNet model's input shape.
Arguments:
Args:
input_shape: either None (will return the default network input shape),
or a user-provided shape to be validated.
default_size: default input width/height for the model.
......@@ -198,7 +198,7 @@ def preprocess_input(x):
the RGB values from [0, 255] to [-1, 1]. Note that this preprocessing
function is different from `imagenet_utils.preprocess_input()`.
Arguments:
Args:
x: a 4D numpy array consists of RGB values within [0, 255].
Returns:
......@@ -237,7 +237,7 @@ def mobilenet_v2(input_shape=None,
model = load_model('mobilenet.h5', custom_objects={
'relu6': mobilenet.relu6})
Arguments:
Args:
input_shape: optional shape tuple, to be specified if you would
like to use a model with an input img resolution that is not
(224, 224, 3).
......
......@@ -408,7 +408,7 @@ def block_basic(x,
name=None):
"""A residual block for ResNet18/34.
Arguments:
Args:
x: input tensor.
filters: integer, filters of the bottleneck layer.
kernel_size: default 3, kernel size of the bottleneck layer.
......@@ -465,7 +465,7 @@ def block_basic(x,
def stack_basic(x, filters, blocks, stride1=2, name=None):
"""A set of stacked residual blocks for ResNet18/34.
Arguments:
Args:
x: input tensor.
filters: integer, filters of the bottleneck layer in a block.
blocks: integer, blocks in the stacked blocks.
......
......@@ -127,7 +127,7 @@ class NoOpScope(object):
def safe_arg_scope(funcs, **kwargs):
"""Returns `slim.arg_scope` with all None arguments removed.
Arguments:
Args:
funcs: Functions to pass to `arg_scope`.
**kwargs: Arguments to pass to `arg_scope`.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment