MCPcopy Create free account

hub / github.com/carpedm20/ENAS-pytorch / functions

Functions90 in github.com/carpedm20/ENAS-pytorch

↓ 9 callersMethodscalar_summary
(self, tag, value, step)
tensorboard.py:29
↓ 5 callersMethodinit_hidden
(self, batch_size)
models/shared_rnn.py:358
↓ 4 callersFunctionadd_argument_group
(name)
config.py:13
↓ 4 callersFunctionadd_node
(graph, node_id, label, shape='box', style='filled')
utils.py:37
↓ 4 callersMethodtrain
Cycles through alternately training the shared parameters and the controller, as described in Section 2.2, Training ENAS and Deriving
trainer.py:197
↓ 3 callersMethodget_batch
(self, source, idx, length=None, volatile=False)
trainer.py:540
↓ 3 callersFunctionget_logger
(name=__file__, level=logging.INFO)
utils.py:184
↓ 3 callersMethodsample
Samples a set of `args.num_blocks` many computational nodes from the controller, where each node is made up of an activation function, and
models/controller.py:153
↓ 3 callersMethodtokenize
Tokenizes a text file.
data/text.py:38
↓ 2 callersMethod__init__
(self, args, corpus)
models/shared_rnn.py:136
↓ 2 callersFunction_get_dropped_weights
Drops out weights to implement DropConnect. Args: w_raw: Full, pre-dropout, weights to be dropped out. dropout_p: Proportion of w
models/shared_rnn.py:17
↓ 2 callersFunction_get_no_grad_ctx_mgr
Returns a the `torch.no_grad` context manager for PyTorch version >= 0.4, or a no-op context manager otherwise.
trainer.py:75
↓ 2 callersFunction_get_optimizer
(name)
trainer.py:66
↓ 2 callersMethodderive
TODO(brendan): We are always deriving based on the very first batch of validation data? This seems wrong...
trainer.py:502
↓ 2 callersMethodget_f
(self, name)
models/shared_rnn.py:362
↓ 2 callersMethodget_loss
Computes the loss for the same batch for M models. This amounts to an estimate of the loss, which is turned into an estimate for the
trainer.py:240
↓ 2 callersMethodget_reward
Computes the perplexity of a single sampled model on a minibatch of validation data.
trainer.py:337
↓ 2 callersMethodget_saved_models_info
(self)
trainer.py:558
↓ 2 callersFunctionget_time
()
utils.py:234
↓ 2 callersMethodimage_summary
(self, tag, value, step)
tensorboard.py:12
↓ 2 callersFunctionmakedirs
(path)
utils.py:261
↓ 2 callersMethodtrain_controller
Fixes the shared parameters and updates the controller parameters. The controller is updated with a score function gradient estimator
trainer.py:369
↓ 2 callersMethodtrain_shared
Train the language model for 400 steps of minibatches of 64 examples. Args: max_step: Used to run extra training steps as
trainer.py:260
↓ 1 callersFunction_apply_penalties
Based on `args`, optionally adds regularization penalty terms for activation regularization, temporal activation regularization and/or hidden
trainer.py:22
↓ 1 callersFunction_check_abs_max_grad
Checks `model` for a new largest gradient for this epoch, in order to track gradient explosions.
trainer.py:85
↓ 1 callersFunction_construct_dags
Constructs a set of DAGs based on the actions, i.e., previous nodes and activation functions, sampled from the controller/policy pi. Args:
models/controller.py:12
↓ 1 callersMethod_summarize_controller_train
Logs the controller's progress for this training epoch.
trainer.py:618
↓ 1 callersMethod_summarize_shared_train
Logs a set of training steps.
trainer.py:670
↓ 1 callersMethodadd_word
(self, word)
data/text.py:15
↓ 1 callersMethodbuild_model
Creates and initializes the shared and controller models.
trainer.py:179
↓ 1 callersMethodcell
Computes a single pass through the discovered RNN cell.
models/shared_rnn.py:289
↓ 1 callersFunctionconv
(kernel, planes)
models/shared_cnn.py:23
↓ 1 callersFunctiondiscount
(x, amount)
trainer.py:62
↓ 1 callersFunctiondraw_network
(dag, path)
utils.py:63
↓ 1 callersMethodevaluate
Evaluate on the validation set. NOTE(brendan): We should not be using the test set to develop the algorithm (basic machine learning g
trainer.py:469
↓ 1 callersMethodforward
(self, # pylint:disable=arguments-differ inputs, hidden, bloc
models/controller.py:132
↓ 1 callersMethodload_model
(self)
trainer.py:594
↓ 1 callersFunctionmain
main: Entry point.
main.py:14
↓ 1 callersFunctionmake_gif
(paths, gif_path, max_frame=50, prefix="")
utils.py:87
↓ 1 callersMethodreset_parameters
(self)
models/shared_rnn.py:408
↓ 1 callersMethodreset_parameters
(self)
models/controller.py:125
↓ 1 callersMethodreset_parameters
(self)
models/shared_cnn.py:65
↓ 1 callersFunctionsave_dag
(args, dag, name)
utils.py:246
↓ 1 callersMethodsave_model
(self)
trainer.py:578
↓ 1 callersFunctionsize
(p)
models/shared_base.py:5
Method__init__
(self, model_dir)
tensorboard.py:9
Method__init__
Constructor for training algorithm. Args: args: From command line, picked up by `argparse`. dataset: Currently only `
trainer.py:106
Method__init__
(self)
data/text.py:9
Method__init__
(self, path)
data/text.py:31
Method__init__
(self, args)
data/image.py:7
Method__init__
Embedding constructor. Args: dropout: Dropout probability. scale: Used to scale parameters of embedding weight matrix
models/shared_rnn.py:63
Method__init__
(self)
models/shared_rnn.py:122
Method__init__
(self)
models/shared_base.py:9
Method__init__
(self, args)
models/controller.py:81
Method__init__
(self, args, images)
models/shared_cnn.py:39
Method__len__
(self)
data/text.py:26
Method__missing__
(self, key)
utils.py:164
Method_get_default_hidden
(key)
models/controller.py:117
Functionbackup_file
(path)
utils.py:271
Functionbatchify
(data, bsz, use_cuda)
utils.py:146
Methodcontroller_lr
(self)
trainer.py:537
Methodcontroller_path
(self)
trainer.py:555
Functionconv3x3
(in_planes, out_planes, stride=1)
models/shared_cnn.py:15
Functionconv5x5
(in_planes, out_planes, stride=1)
models/shared_cnn.py:19
Functiondetach
(h)
utils.py:127
Methodforward
Embeds `inputs` with the dropped out embedding weight matrix.
models/shared_rnn.py:94
Methodforward
(self, x, dropout=0.5)
models/shared_rnn.py:125
Methodforward
(self, # pylint:disable=arguments-differ inputs, dag, hidden=
models/shared_rnn.py:195
Methodforward
(self, inputs, dag)
models/shared_cnn.py:55
Functionget_args
Parses all of the arguments above, which mostly correspond to the hyperparameters mentioned in the paper.
config.py:140
Methodget_f
(self, name)
models/shared_base.py:16
Methodget_f
(self, name)
models/shared_cnn.py:58
Methodget_num_cell_parameters
(self, dag)
models/shared_rnn.py:374
Methodget_num_cell_parameters
(self, dag)
models/shared_base.py:19
Methodget_num_cell_parameters
(self, dag)
models/shared_cnn.py:62
Methodget_numbers
(items, delimiter, idx, replace_word, must_contain='')
trainer.py:562
Functionget_variable
(inputs, cuda=False, **kwargs)
utils.py:133
Methodinit_hidden
(self, batch_size)
models/controller.py:222
Functionisnan
(tensor)
models/shared_rnn.py:47
Functionload_dag
(args)
utils.py:251
Methodnum_parameters
(self)
models/shared_base.py:13
Functionprepare_dirs
Sets the directories for the model, and creates those directories. Args: args: Parsed from `argparse` in the `config` module.
utils.py:209
Functionremove_file
(path)
utils.py:266
Methodreset_parameters
(self)
models/shared_base.py:22
Functionsave_args
(args)
utils.py:237
Methodshared_lr
(self)
trainer.py:532
Methodshared_path
(self)
trainer.py:551
Functionstr2bool
(v)
config.py:10
Functionto_item
Converts x, possibly scalar and possibly tensor, to a Python scalar.
utils.py:172
Functionupdate_lr
(optimizer, lr)
utils.py:142