Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cybertronai/gradient-checkpointing
/ functions
Functions
280 in github.com/cybertronai/gradient-checkpointing
⨍
Functions
280
◇
Types & classes
7
↳
Endpoints
2
↓ 1 callers
Function
create_session
()
test/multiple_memory_obtain_test.py:19
↓ 1 callers
Function
create_session
()
test/mnist_correctness_test.py:149
↓ 1 callers
Function
create_session
()
test/imagenet_test.py:112
↓ 1 callers
Function
create_session
()
test/deep_resnet_benchmark.py:64
↓ 1 callers
Function
create_session
()
test/resnet_correctness_test.py:60
↓ 1 callers
Function
create_session
()
test/resnet_test.py:59
↓ 1 callers
Function
create_session
()
test/deep_imagenet_benchmark.py:80
↓ 1 callers
Function
create_session
()
test/imagenet_correctness_test.py:101
↓ 1 callers
Function
create_train_op_and_loss
Creates loss tensor for resnet model.
test/imagenet_test.py:119
↓ 1 callers
Function
dense
fully connected layer
test/pixel_cnn_pp/nn.py:160
↓ 1 callers
Function
fixdims
(t)
memory_saving_gradients.py:108
↓ 1 callers
Function
fixed_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 callers
Function
flatten
(l)
test/util.py:102
↓ 1 callers
Function
format_ops
Helper method for printing ops. Converts Tensor/Operation op to op.name, rest to str(op).
test/linearize.py:116
↓ 1 callers
Function
forward
Takes A0, applies n operations to it, returns An.
test/mem_util_test.py:21
↓ 1 callers
Function
get_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 callers
Method
get_num_labels
(self)
test/data/cifar10_data.py:86
↓ 1 callers
Method
get_observation_size
(self)
test/data/cifar10_data.py:83
↓ 1 callers
Function
grads_and_loss
Creates loss tensor for resnet model.
test/imagenet_correctness_test.py:108
↓ 1 callers
Function
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:346
↓ 1 callers
Function
is_iterable
(o)
test/linearize.py:360
↓ 1 callers
Function
load
(data_dir, subset='train')
test/data/imagenet_data.py:76
↓ 1 callers
Function
load
(data_dir, subset='train')
test/data/cifar10_data.py:40
↓ 1 callers
Function
log_prob_from_logits
numerically stable log_softmax implementation that prevents overflow
test/pixel_cnn_pp/nn.py:24
↓ 1 callers
Function
main
()
test/pixel_cnn_test.py:65
↓ 1 callers
Function
main
()
test/multiple_memory_obtain_test.py:46
↓ 1 callers
Function
main
(unused_argv)
test/mnist_correctness_test.py:257
↓ 1 callers
Function
main
()
test/deep_resnet_benchmark.py:179
↓ 1 callers
Function
main
()
test/mem_util_test.py:142
↓ 1 callers
Function
main
()
test/resnet_correctness_test.py:213
↓ 1 callers
Function
main
()
test/resnet_test.py:175
↓ 1 callers
Function
main
()
test/deep_imagenet_benchmark.py:166
↓ 1 callers
Function
make_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 callers
Function
make_merge
(a, b, i)
test/linearize_test.py:356
↓ 1 callers
Function
make_merge
(a, b, i)
test/util.py:145
↓ 1 callers
Function
maybe_download_and_extract
(data_dir)
test/data/imagenet_data.py:29
↓ 1 callers
Function
maybe_download_and_extract
(data_dir, url='http://www.cs.toronto.edu/~kriz/cifar-10-python.tar.gz')
test/data/cifar10_data.py:12
↓ 1 callers
Function
maybe_preprocess
(data_dir)
test/data/imagenet_data.py:49
↓ 1 callers
Function
mnist_model
Takes the MNIST inputs and mode and outputs a tensor of logits.
test/mnist_correctness_test.py:37
↓ 1 callers
Function
nin
a network in network layer (1x1 CONV)
test/pixel_cnn_pp/nn.py:255
↓ 1 callers
Function
obtain_linear_order
(targets=None)
test/linearize.py:370
↓ 1 callers
Function
parents
(op)
test/linearize.py:68
↓ 1 callers
Function
peak_memory
Return dictionary of peak memory usage (bytes) for each device. {"cpu:0": 20441, ...
test/mem_util.py:52
↓ 1 callers
Function
prune_graph
Return parts of the graph needed to compute targets.
test/linearize.py:187
↓ 1 callers
Function
remove_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 callers
Method
reset
(self)
test/data/imagenet_data.py:110
↓ 1 callers
Function
sample_from_model
(sess)
test/pixel_cnn_test.py:169
↓ 1 callers
Function
sessrun
(*args, **kwargs)
test/mnist_correctness_test.py:118
↓ 1 callers
Function
test
()
test/imagenet_correctness_test.py:161
↓ 1 callers
Function
test_articulation_points
()
test/linearize_test.py:373
↓ 1 callers
Function
test_articulation_points_resnet
Make sure articulation points are found correctly in resnet.
test/util_test.py:19
↓ 1 callers
Function
test_chain
Runs regular chain gradient, makes sure memory usage makes sense.
test/memory_test.py:94
↓ 1 callers
Function
test_chain_linearize
()
test/linearize_test.py:66
↓ 1 callers
Function
test_chain_rewrite
Take chain of length 5, save 2 nodes, make sure 2 units of RAM is saved.
test/memory_test.py:126
↓ 1 callers
Function
test_chain_rewrite_save_first
Take chain of length 5, save first node.
test/memory_test.py:197
↓ 1 callers
Function
test_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 callers
Function
test_chain_rewrite_save_one_before_last
Take chain of length 5, save first node.
test/memory_test.py:173
↓ 1 callers
Function
test_correctness
(capsys)
test/mnist_correctness_test.py:226
↓ 1 callers
Function
test_dual_chain
Runs regular chain gradient, makes sure memory usage makes sense.
test/memory_test.py:223
↓ 1 callers
Function
test_dual_chain_rewrite
Runs regular chain gradient, makes sure memory usage makes sense.
test/memory_test.py:253
↓ 1 callers
Function
test_golden_order
()
test/linearize_test.py:51
↓ 1 callers
Function
test_imagenet_resnet_grads
()
test/linearize_test.py:216
↓ 1 callers
Function
test_long_resnet
()
test/memory_test.py:515
↓ 1 callers
Function
test_memory_automatic
()
test/imagenet_test.py:190
↓ 1 callers
Function
test_peak
()
test/mem_util_test.py:66
↓ 1 callers
Function
test_peak_gpu
()
test/mem_util_test.py:85
↓ 1 callers
Function
test_pick_n_equispaced
()
test/util_test.py:36
↓ 1 callers
Function
test_print
()
test/mem_util_test.py:107
↓ 1 callers
Function
test_resnet_structure
sanity check on TF resnet structure.
test/util_test.py:9
↓ 1 callers
Function
tf_ops_to_graph
Creates op->children dictionary from list of TensorFlow ops.
test/util.py:99
↓ 1 callers
Function
tiny_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 callers
Function
train_dataset
Returns a tf.data.Dataset yielding (image, label) pairs for training.
test/mnist_correctness_test.py:31
↓ 1 callers
Function
train_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
Function
adam_updates
Adam optimizer
test/pixel_cnn_pp/nn.py:125
Function
backward
(A0, An, Bn, n)
test/mem_util_test.py:29
Function
bottleneck_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
Function
building_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
Function
capture_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
Function
capture_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
Function
cifar10_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
← previous
next →
101–200 of 280, ranked by callers