MCPcopy Create free account

hub / github.com/PrajitR/fast-pixel-cnn / functions

Functions112 in github.com/PrajitR/fast-pixel-cnn

↓ 14 callersMethod_test_down_right_shifted
Tests the down_shifted convolution for the vertical stack.
fast_pixel_cnn_pp/test_components.py:459
↓ 13 callersMethod_test_down_shifted
Tests the down_shifted convolution for the vertical stack.
fast_pixel_cnn_pp/test_components.py:384
↓ 12 callersFunction_mod_equal_0
Returns a boolean tensor representing (row_or_col % every == 0)
fast_pixel_cnn_pp/fast_nn.py:97
↓ 11 callersFunctionint_shape
(x)
fast_pixel_cnn_pp/nn.py:9
↓ 8 callersMethod_gated_resnet_hstack
Tests the gated resnet layers for the horizontal stack.
fast_pixel_cnn_pp/test_components.py:598
↓ 8 callersMethod_gated_resnet_vstack_only
Tests the gated resnet layers for the vertical stack.
fast_pixel_cnn_pp/test_components.py:535
↓ 7 callersFunctioncache_v_stack_variable
Caches vertical stack hidden states. This avoids the need to pass the computed vertical stack in the feed_dict, which would involve CPU to GPU
fast_pixel_cnn_pp/model.py:25
↓ 6 callersFunction_extract_layer_info
Utility function to extract information about the current layer.
fast_pixel_cnn_pp/fast_nn.py:33
↓ 5 callersMethod_get_placeholders
Creates all placeholders.
fast_pixel_cnn_pp/test_components.py:186
↓ 4 callersFunction_roll_cache
Pop off the oldest row of the cache to make space for the newest row of input.
fast_pixel_cnn_pp/fast_nn.py:102
↓ 4 callersFunctionget_name
utlity for keeping track of layer names
fast_pixel_cnn_pp/nn.py:140
↓ 3 callersFunction_create_cache
Creates a cache, which is used to avoid redundant computation.
fast_pixel_cnn_pp/fast_nn.py:46
↓ 3 callersMethod_test_pixels_equal
Tests if horizontal stack outputs (one pixel at a time) of our code and OpenAI code are equal.
fast_pixel_cnn_pp/test_components.py:270
↓ 2 callersMethod_compute_conv_fast_nn_out
Computes cached convolutions, handling downsampling and upsampling.
fast_pixel_cnn_pp/test_components.py:330
↓ 2 callersFunction_conditional_info
Computes the conditional information for the resnet layer.
fast_pixel_cnn_pp/fast_nn.py:373
↓ 2 callersFunction_create_deconv_cache
Creates the cache for the two deconv layers.
fast_pixel_cnn_pp/fast_nn.py:222
↓ 2 callersFunction_gated_nonlinearity
(out)
fast_pixel_cnn_pp/fast_nn.py:387
↓ 2 callersFunction_get_conv2d_variables
Creates and returns the variables used for a normal 2D convolution.
fast_pixel_cnn_pp/fast_nn.py:77
↓ 2 callersFunction_get_conv_variables
Creates and returns variables used for convolution.
fast_pixel_cnn_pp/fast_nn.py:64
↓ 2 callersFunction_get_deconv2d_variables
Creates and returns the variables used for a 2D transposed convolution (deconvolution).
fast_pixel_cnn_pp/fast_nn.py:87
↓ 2 callersMethod_setup_conv_tests
Sets up the conv tests by computing basic layer information.
fast_pixel_cnn_pp/test_components.py:317
↓ 2 callersMethod_setup_test_equal
Sets up both _test_*_equals() methods by initializing variables and outputs.
fast_pixel_cnn_pp/test_components.py:201
↓ 2 callersMethod_test_rows_equal
Tests if vertical stack outputs (one row at a time) of our code and OpenAI code are equal.
fast_pixel_cnn_pp/test_components.py:230
↓ 2 callersFunctionconv2d
convolutional layer
fast_pixel_cnn_pp/nn.py:187
↓ 2 callersFunctiondeconv2d
transposed convolutional layer
fast_pixel_cnn_pp/nn.py:221
↓ 2 callersFunctiondown_right_shifted_conv2d
Performs a convolution for the horizontal stack.
fast_pixel_cnn_pp/fast_nn.py:161
↓ 2 callersFunctiondown_shifted_conv2d
Performs a convolution for the vertical stack.
fast_pixel_cnn_pp/fast_nn.py:112
↓ 2 callersFunctionget_var_maybe_avg
utility for retrieving polyak averaged params
fast_pixel_cnn_pp/nn.py:100
↓ 2 callersFunctionget_vars_maybe_avg
utility for retrieving polyak averaged params
fast_pixel_cnn_pp/nn.py:107
↓ 2 callersFunctionimg_stretch
(img)
fast_pixel_cnn_pp/plotting.py:20
↓ 2 callersFunctionlog_sum_exp
numerically stable log_sum_exp implementation that prevents overflow
fast_pixel_cnn_pp/nn.py:20
↓ 2 callersFunctionmodel_spec
Creates the model. Follows the same model_spec structure as the original PixelCNN++.
fast_pixel_cnn_pp/model.py:39
↓ 2 callersFunctionundo_zeroth_row_bias_when_downshifting
The down_shifted_conv2d adds a bias to the row of all zeros. This removes that bias.
fast_pixel_cnn_pp/model.py:11
↓ 1 callersMethod_test_sum_rightshift_downshift
Tests the sum of the vertical and horizontal stack.
fast_pixel_cnn_pp/test_components.py:664
↓ 1 callersFunctiondense
fully connected layer
fast_pixel_cnn_pp/nn.py:149
↓ 1 callersFunctionimg_tile
Tile images in a grid. If tile_shape is provided only as many images as specified in tile_shape will be included in the output.
fast_pixel_cnn_pp/plotting.py:26
↓ 1 callersFunctionlog_prob_from_logits
numerically stable log_softmax implementation that prevents overflow
fast_pixel_cnn_pp/nn.py:27
↓ 1 callersFunctionnin
a network in network layer (1x1 CONV)
fast_pixel_cnn_pp/nn.py:261
↓ 1 callersFunctionscale_to_unit_interval
Scales all values in the ndarray ndar to be between 0 and 1
fast_pixel_cnn_pp/plotting.py:88
↓ 1 callersFunctionundo_zeroth_column_bias_when_rightshifting
The down_shifted_conv2d adds a bias to the column of all zeros. This removes that bias.
fast_pixel_cnn_pp/model.py:18
Functionadam_updates
Adam optimizer
fast_pixel_cnn_pp/nn.py:114
Functioncache_func
()
fast_pixel_cnn_pp/fast_nn.py:253
Methodcompute_ground_truth
(init)
fast_pixel_cnn_pp/test_components.py:412
Methodcompute_output_func
(fast_nn_out, layer_type, input_image_size, stride, cache_every, run_every
fast_pixel_cnn_pp/test_components.py:433
Functionconcat_elu
like concatenated ReLU (http://arxiv.org/abs/1603.05201), but then with ELU
fast_pixel_cnn_pp/nn.py:12
Functionconv_filter_tile
(filters)
fast_pixel_cnn_pp/plotting.py:73
Functiondiscretized_mix_logistic_loss
log-likelihood for mixture of discretized logistics, assumes the data has been rescaled to [-1,1] interval
fast_pixel_cnn_pp/nn.py:33
Functiondown_right_shifted_conv2d
(x, num_filters, filter_size=[2,2], stride=[1,1], **kwargs)
fast_pixel_cnn_pp/nn.py:318
Functiondown_right_shifted_deconv2d
(x, num_filters, filter_size=[2,2], stride=[1,1], **kwargs)
fast_pixel_cnn_pp/nn.py:323
Functiondown_right_shifted_deconv2d
Performs a transposed convolution for the horizontal stack.
fast_pixel_cnn_pp/fast_nn.py:297
Functiondown_shift
(x)
fast_pixel_cnn_pp/nn.py:298
Functiondown_shift
Shift all rows down by one, using zeros as the first row and throwing away the last row.
fast_pixel_cnn_pp/fast_nn.py:19
Functiondown_shifted_conv2d
(x, num_filters, filter_size=[2,3], stride=[1,1], **kwargs)
fast_pixel_cnn_pp/nn.py:307
Functiondown_shifted_deconv2d
(x, num_filters, filter_size=[2,3], stride=[1,1], **kwargs)
fast_pixel_cnn_pp/nn.py:312
Functiondown_shifted_deconv2d
Performs a transposed convolution for the vertical stack.
fast_pixel_cnn_pp/fast_nn.py:234
Functiongated_resnet
(x, a=None, h=None, nonlinearity=concat_elu, conv=conv2d, init=False, counters={}, ema=None, dropout_p=0., **k
fast_pixel_cnn_pp/nn.py:271
Functiongated_resnet_hstack
Performs gated resnet computations for the horizontal stack.
fast_pixel_cnn_pp/fast_nn.py:443
Functiongated_resnet_vstack_only
Performs gated resnet computations for the vertical stack.
fast_pixel_cnn_pp/fast_nn.py:393
Methodget_conv_function
Returns the matching conv or deconv function.
fast_pixel_cnn_pp/test_components.py:395
Functionplot_img
(img, title=None)
fast_pixel_cnn_pp/plotting.py:11
Functionreset_cache_op
Returns an op to reset all created caches. Used between different generation calls.
fast_pixel_cnn_pp/fast_nn.py:59
Functionright_shift
(x)
fast_pixel_cnn_pp/nn.py:302
Functionright_shift
Shift all columns right by one, using zeros as the first column and throwing away the last column.
fast_pixel_cnn_pp/fast_nn.py:26
Functionrun_func
()
fast_pixel_cnn_pp/fast_nn.py:280
Functionsample_from_discretized_mix_logistic
(l,nr_mix,seed=None)
fast_pixel_cnn_pp/nn.py:76
Functionsum_rightshift_downshift
Sums the vertical and horizontal stack.
fast_pixel_cnn_pp/fast_nn.py:367
Methodtest_down_right_shifted_conv2d_conv2d_2_deconv_2_layer2
(self)
fast_pixel_cnn_pp/test_components.py:114
Methodtest_down_right_shifted_conv2d_conv2d_deconv2d_deconv2d_layer4_stride2
( self)
fast_pixel_cnn_pp/test_components.py:118
Methodtest_down_right_shifted_conv2d_deconv2d_conv2d_deconv2d_layer4_stride2
( self)
fast_pixel_cnn_pp/test_components.py:125
Methodtest_down_right_shifted_conv2d_deconv2d_layer2_stride2
(self)
fast_pixel_cnn_pp/test_components.py:110
Methodtest_down_right_shifted_conv2d_layer1_stride1
(self)
fast_pixel_cnn_pp/test_components.py:69
Methodtest_down_right_shifted_conv2d_layer1_stride1_1by3
(self)
fast_pixel_cnn_pp/test_components.py:65
Methodtest_down_right_shifted_conv2d_layer1_stride2
(self)
fast_pixel_cnn_pp/test_components.py:78
Methodtest_down_right_shifted_conv2d_layer2_stride1
(self)
fast_pixel_cnn_pp/test_components.py:72
Methodtest_down_right_shifted_conv2d_layer2_stride2
(self)
fast_pixel_cnn_pp/test_components.py:82
Methodtest_down_right_shifted_conv2d_layer3_stride1
(self)
fast_pixel_cnn_pp/test_components.py:75
Methodtest_down_right_shifted_conv2d_layer3_stride2
(self)
fast_pixel_cnn_pp/test_components.py:86
Methodtest_down_right_shifted_deconv2d_layer1_stride2
(self)
fast_pixel_cnn_pp/test_components.py:90
Methodtest_down_right_shifted_deconv2d_layer2_stride2
(self)
fast_pixel_cnn_pp/test_components.py:94
Methodtest_down_right_shifted_deconv2d_layer3_stride2
(self)
fast_pixel_cnn_pp/test_components.py:102
Methodtest_down_shifted_conv2d_conv2d_2_deconv_2_layer2
(self)
fast_pixel_cnn_pp/test_components.py:49
Methodtest_down_shifted_conv2d_conv2d_deconv2d_deconv2d_layer4_stride2
(self)
fast_pixel_cnn_pp/test_components.py:53
Methodtest_down_shifted_conv2d_deconv2d_conv2d_deconv2d_layer4_stride2
(self)
fast_pixel_cnn_pp/test_components.py:59
Methodtest_down_shifted_conv2d_deconv2d_layer2_stride2
(self)
fast_pixel_cnn_pp/test_components.py:45
Methodtest_down_shifted_conv2d_layer1_stride1
(self)
fast_pixel_cnn_pp/test_components.py:17
Methodtest_down_shifted_conv2d_layer1_stride1_1by3
(self)
fast_pixel_cnn_pp/test_components.py:20
Methodtest_down_shifted_conv2d_layer1_stride2
(self)
fast_pixel_cnn_pp/test_components.py:32
Methodtest_down_shifted_conv2d_layer2_stride1
(self)
fast_pixel_cnn_pp/test_components.py:23
Methodtest_down_shifted_conv2d_layer2_stride1_2
(self)
fast_pixel_cnn_pp/test_components.py:29
Methodtest_down_shifted_conv2d_layer3_stride1
(self)
fast_pixel_cnn_pp/test_components.py:26
Methodtest_down_shifted_conv2d_layer3_stride1_2_2
(self)
fast_pixel_cnn_pp/test_components.py:35
Methodtest_down_shifted_deconv2d_layer1_stride2
(self)
fast_pixel_cnn_pp/test_components.py:38
Methodtest_down_shifted_deconv2d_layer2_stride2
(self)
fast_pixel_cnn_pp/test_components.py:41
Methodtest_end_to_end
(self)
fast_pixel_cnn_pp/test_end_to_end.py:12
Methodtest_gated_resnet_hstack_basic
(self)
fast_pixel_cnn_pp/test_components.py:161
Methodtest_gated_resnet_hstack_basic_3layers
(self)
fast_pixel_cnn_pp/test_components.py:167
Methodtest_gated_resnet_hstack_use_extra_pixel_input
(self)
fast_pixel_cnn_pp/test_components.py:173
Methodtest_gated_resnet_hstack_use_extra_pixel_input_3layers
(self)
fast_pixel_cnn_pp/test_components.py:176
Methodtest_gated_resnet_hstack_use_extra_pixel_input_and_use_h
(self)
fast_pixel_cnn_pp/test_components.py:179
Methodtest_gated_resnet_hstack_use_extra_pixel_input_and_use_h_3layers
(self)
fast_pixel_cnn_pp/test_components.py:182
next →1–100 of 112, ranked by callers