MCPcopy Create free account

hub / github.com/cybertronai/gradient-checkpointing / functions

Functions280 in github.com/cybertronai/gradient-checkpointing

↓ 1 callersFunctioncreate_session
()
test/multiple_memory_obtain_test.py:19
↓ 1 callersFunctioncreate_session
()
test/mnist_correctness_test.py:149
↓ 1 callersFunctioncreate_session
()
test/imagenet_test.py:112
↓ 1 callersFunctioncreate_session
()
test/deep_resnet_benchmark.py:64
↓ 1 callersFunctioncreate_session
()
test/resnet_correctness_test.py:60
↓ 1 callersFunctioncreate_session
()
test/resnet_test.py:59
↓ 1 callersFunctioncreate_session
()
test/deep_imagenet_benchmark.py:80
↓ 1 callersFunctioncreate_session
()
test/imagenet_correctness_test.py:101
↓ 1 callersFunctioncreate_train_op_and_loss
Creates loss tensor for resnet model.
test/imagenet_test.py:119
↓ 1 callersFunctiondense
fully connected layer
test/pixel_cnn_pp/nn.py:160
↓ 1 callersFunctionfixdims
(t)
memory_saving_gradients.py:108
↓ 1 callersFunctionfixed_padding
Pads the input along the spatial dimensions independently of input size. Args: inputs: A tensor of size [batch, channels, height_in, width_in]
test/resnet_model.py:55
↓ 1 callersFunctionflatten
(l)
test/util.py:102
↓ 1 callersFunctionformat_ops
Helper method for printing ops. Converts Tensor/Operation op to op.name, rest to str(op).
test/linearize.py:116
↓ 1 callersFunctionforward
Takes A0, applies n operations to it, returns An.
test/mem_util_test.py:21
↓ 1 callersFunctionget_graph
Creates dictionary {node: {child1, child2, ..},..} for current TensorFlow graph. Args: g: tf.Graph to use or None, in which case take default
test/linearize.py:130
↓ 1 callersMethodget_num_labels
(self)
test/data/cifar10_data.py:86
↓ 1 callersMethodget_observation_size
(self)
test/data/cifar10_data.py:83
↓ 1 callersFunctiongrads_and_loss
Creates loss tensor for resnet model.
test/imagenet_correctness_test.py:108
↓ 1 callersFunctionimagenet_resnet_v2_generator
Generator for ImageNet ResNet v2 models. Args: block_fn: The block to use within the model, either `building_block` or `bottleneck_block`
test/resnet_model.py:346
↓ 1 callersFunctionis_iterable
(o)
test/linearize.py:360
↓ 1 callersFunctionload
(data_dir, subset='train')
test/data/imagenet_data.py:76
↓ 1 callersFunctionload
(data_dir, subset='train')
test/data/cifar10_data.py:40
↓ 1 callersFunctionlog_prob_from_logits
numerically stable log_softmax implementation that prevents overflow
test/pixel_cnn_pp/nn.py:24
↓ 1 callersFunctionmain
()
test/pixel_cnn_test.py:65
↓ 1 callersFunctionmain
()
test/multiple_memory_obtain_test.py:46
↓ 1 callersFunctionmain
(unused_argv)
test/mnist_correctness_test.py:257
↓ 1 callersFunctionmain
()
test/deep_resnet_benchmark.py:179
↓ 1 callersFunctionmain
()
test/mem_util_test.py:142
↓ 1 callersFunctionmain
()
test/resnet_correctness_test.py:213
↓ 1 callersFunctionmain
()
test/resnet_test.py:175
↓ 1 callersFunctionmain
()
test/deep_imagenet_benchmark.py:166
↓ 1 callersFunctionmake_chain_tanh
Creates chain of length length. First node is Variable, rest are tanh. Returns nodes. Note, if length is 1, there are no non-linearities in the gr
test/multiple_memory_obtain_test.py:24
↓ 1 callersFunctionmake_merge
(a, b, i)
test/linearize_test.py:356
↓ 1 callersFunctionmake_merge
(a, b, i)
test/util.py:145
↓ 1 callersFunctionmaybe_download_and_extract
(data_dir)
test/data/imagenet_data.py:29
↓ 1 callersFunctionmaybe_download_and_extract
(data_dir, url='http://www.cs.toronto.edu/~kriz/cifar-10-python.tar.gz')
test/data/cifar10_data.py:12
↓ 1 callersFunctionmaybe_preprocess
(data_dir)
test/data/imagenet_data.py:49
↓ 1 callersFunctionmnist_model
Takes the MNIST inputs and mode and outputs a tensor of logits.
test/mnist_correctness_test.py:37
↓ 1 callersFunctionnin
a network in network layer (1x1 CONV)
test/pixel_cnn_pp/nn.py:255
↓ 1 callersFunctionobtain_linear_order
(targets=None)
test/linearize.py:370
↓ 1 callersFunctionparents
(op)
test/linearize.py:68
↓ 1 callersFunctionpeak_memory
Return dictionary of peak memory usage (bytes) for each device. {"cpu:0": 20441, ...
test/mem_util.py:52
↓ 1 callersFunctionprune_graph
Return parts of the graph needed to compute targets.
test/linearize.py:187
↓ 1 callersFunctionremove_variable_ops_from_graph
Remove ops which either require initialization (Variable) or update values. This ensure that linearizing the whole graph doesn't break initializatio
test/linearize.py:246
↓ 1 callersMethodreset
(self)
test/data/imagenet_data.py:110
↓ 1 callersFunctionsample_from_model
(sess)
test/pixel_cnn_test.py:169
↓ 1 callersFunctionsessrun
(*args, **kwargs)
test/mnist_correctness_test.py:118
↓ 1 callersFunctiontest
()
test/imagenet_correctness_test.py:161
↓ 1 callersFunctiontest_articulation_points
()
test/linearize_test.py:373
↓ 1 callersFunctiontest_articulation_points_resnet
Make sure articulation points are found correctly in resnet.
test/util_test.py:19
↓ 1 callersFunctiontest_chain
Runs regular chain gradient, makes sure memory usage makes sense.
test/memory_test.py:94
↓ 1 callersFunctiontest_chain_linearize
()
test/linearize_test.py:66
↓ 1 callersFunctiontest_chain_rewrite
Take chain of length 5, save 2 nodes, make sure 2 units of RAM is saved.
test/memory_test.py:126
↓ 1 callersFunctiontest_chain_rewrite_save_first
Take chain of length 5, save first node.
test/memory_test.py:197
↓ 1 callersFunctiontest_chain_rewrite_save_last
Take chain of length 5, save last node. This saved no memory, and is and edge case that should raise exception by rewriter.
test/memory_test.py:154
↓ 1 callersFunctiontest_chain_rewrite_save_one_before_last
Take chain of length 5, save first node.
test/memory_test.py:173
↓ 1 callersFunctiontest_correctness
(capsys)
test/mnist_correctness_test.py:226
↓ 1 callersFunctiontest_dual_chain
Runs regular chain gradient, makes sure memory usage makes sense.
test/memory_test.py:223
↓ 1 callersFunctiontest_dual_chain_rewrite
Runs regular chain gradient, makes sure memory usage makes sense.
test/memory_test.py:253
↓ 1 callersFunctiontest_golden_order
()
test/linearize_test.py:51
↓ 1 callersFunctiontest_imagenet_resnet_grads
()
test/linearize_test.py:216
↓ 1 callersFunctiontest_long_resnet
()
test/memory_test.py:515
↓ 1 callersFunctiontest_memory_automatic
()
test/imagenet_test.py:190
↓ 1 callersFunctiontest_peak
()
test/mem_util_test.py:66
↓ 1 callersFunctiontest_peak_gpu
()
test/mem_util_test.py:85
↓ 1 callersFunctiontest_pick_n_equispaced
()
test/util_test.py:36
↓ 1 callersFunctiontest_print
()
test/mem_util_test.py:107
↓ 1 callersFunctiontest_resnet_structure
sanity check on TF resnet structure.
test/util_test.py:9
↓ 1 callersFunctiontf_ops_to_graph
Creates op->children dictionary from list of TensorFlow ops.
test/util.py:99
↓ 1 callersFunctiontiny_imagenet_resnet_v2_generator
Generator for ImageNet ResNet v2 models. Args: block_fn: The block to use within the model, either `building_block` or `bottleneck_block`
test/resnet_model.py:411
↓ 1 callersFunctiontrain_dataset
Returns a tf.data.Dataset yielding (image, label) pairs for training.
test/mnist_correctness_test.py:31
↓ 1 callersFunctiontrain_input_fn
()
test/mnist_correctness_test.py:179
Method__delitem__
(self, key)
test/linearize.py:284
Method__enter__
(self)
test/util.py:291
Method__exit__
(self, exc_type, exc_value, traceback)
test/util.py:276
Method__exit__
(self, exc_type, exc_value, traceback)
test/util.py:297
Method__init__
(self, outfn, save_every_secs=10)
test/deep_resnet_benchmark.py:154
Method__init__
(self, items=None)
test/linearize.py:270
Method__init__
(self, fd=STDERR)
test/util.py:266
Method__init__
(self, fd=STDOUT)
test/util.py:287
Method__init__
(self, temporary_file)
test/util.py:303
Method__init__
- data_dir is location where the files are stored - subset is train|test - batch_size is int, of #examples to load at once
test/data/imagenet_data.py:90
Method__init__
- data_dir is location where to store files - subset is train|test - batch_size is int, of #examples to load at once
test/data/cifar10_data.py:58
Method__iter__
(self)
test/linearize.py:278
Method__iter__
(self)
test/data/imagenet_data.py:113
Method__iter__
(self)
test/data/cifar10_data.py:92
Method__len__
(self)
test/linearize.py:287
Method__next__
n is the number of examples to fetch
test/data/imagenet_data.py:116
Method__next__
n is the number of examples to fetch
test/data/cifar10_data.py:95
Method__repr__
(self)
test/linearize.py:307
Function_progress
(count, block_size, total_size)
test/data/imagenet_data.py:19
Function_progress
(count, block_size, total_size)
test/data/cifar10_data.py:19
Functionadam_updates
Adam optimizer
test/pixel_cnn_pp/nn.py:125
Functionbackward
(A0, An, Bn, n)
test/mem_util_test.py:29
Functionbottleneck_block
Bottleneck block variant for residual networks with BN before convolutions. Args: inputs: A tensor of size [batch, channels, height_in, width_i
test/resnet_model.py:142
Functionbuilding_block
Standard building block for residual networks with BN before convolutions. Args: inputs: A tensor of size [batch, channels, height_in, width_in
test/resnet_model.py:103
Functioncapture_ops
Decorator to capture ops created in the block. with capture_ops() as ops: # create some ops print(ops) # => prints ops created.
memory_saving_gradients.py:337
Functioncapture_ops
Decorator to capture ops created in the block. with capture_ops() as ops: # create some ops print(ops) # => prints ops created.
test/util.py:310
Functioncifar10_resnet_v2_generator
Generator for CIFAR-10 ResNet v2 models. Args: resnet_size: A single integer for the size of the ResNet model. num_classes: The number of p
test/resnet_model.py:226
← previousnext →101–200 of 280, ranked by callers