MCPcopy Create free account

hub / github.com/Tencent/PocketFlow / functions

Functions751 in github.com/Tencent/PocketFlow

↓ 3 callersMethodinitialize_state
Initialize state
learners/channel_pruning/channel_pruner.py:108
↓ 3 callersFunctioninsert_quant_op
Insert quantization operations to the specified activation node. Args: * graph: TensorFlow graph * node_name: activation node's name * is_tra
learners/uniform_quantization_tf/utils.py:53
↓ 3 callersFunctionnormalize
Normalize with the given running averages of mean value & standard deviation. Args: * smpl_mat: unnormalized sample matrix * rms: running avera
rl_agents/ddpg/agent.py:40
↓ 3 callersMethodoutput_height
get the height of a convolution output
learners/channel_pruning/model_wrapper.py:235
↓ 3 callersMethodoutput_width
get the width of a convolution output
learners/channel_pruning/model_wrapper.py:242
↓ 3 callersMethodpoint2center
(self, ymin, xmin, ymax, xmax)
utils/external/ssd_tensorflow/utility/anchor_manipulator.py:123
↓ 3 callersFunctionsafe_arg_scope
Returns `slim.arg_scope` with all None arguments removed. Arguments: funcs: Functions to pass to `arg_scope`. **kwargs: Arguments to pass t
utils/external/mobilenet.py:127
↓ 3 callersFunctionwrapped_partial
(func, *args, **kwargs)
utils/external/mobilenet_v1.py:395
↓ 3 callersFunctionwrapped_partial
(func, *args, **kwargs)
utils/external/mobilenet_v2.py:169
↓ 2 callersFunction_ImageDimensions
Returns the dimensions of an image tensor. Args: image: A rank-D Tensor. For 3-D of shape: `[height, width, channels]`. rank: The expected
utils/external/ssd_tensorflow/preprocessing/ssd_preprocessing.py:44
↓ 2 callersMethod__build
Build the training / evaluation graph. Args: * is_train: whether to create the training graph
learners/full_precision/learner.py:105
↓ 2 callersMethod__build
(self, is_train)
learners/channel_pruning/learner.py:213
↓ 2 callersMethod__build_pruned_evaluate_model
build a evaluation model from pruned model
learners/channel_pruning/learner.py:274
↓ 2 callersMethod__calc_grads_pruned
Calculate the mask-pruned gradients. Args: * grads_origin: list of original gradients Returns: * grads_pruned: list of mask-pruned g
learners/channel_pruning_gpu/learner.py:425
↓ 2 callersMethod__calc_grads_pruned
Calculate the mask-pruned gradients. Args: * grads_origin: list of original gradients Returns: * grads_pruned: list of mask-pruned g
learners/weight_sparsification/pr_optimizer.py:339
↓ 2 callersMethod__calc_loss_n_metrics
Calculate the loss function's value and evaluation metrics. Returns: * loss: loss function's value * metrics: evaluation metrics
learners/weight_sparsification/pr_optimizer.py:584
↓ 2 callersMethod__channel_bucket
reshape weights according to bucket for 'channel' type. Note that for fc layers, buckets are created row-wisely. Args: w: A Tensor
learners/nonuniform_quantization/utils.py:463
↓ 2 callersMethod__compute_model_flops
Compute the convolution computation flops of the model
learners/channel_pruning/channel_pruner.py:243
↓ 2 callersMethod__conv_left
Get the left convolutions after pruning so far
learners/channel_pruning/channel_pruner.py:229
↓ 2 callersMethod__init__
Constructor function. Args: * scope: name scope in which the model is defined
rl_agents/ddpg/actor_critic.py:51
↓ 2 callersMethod__prune_list_layers
(self, queue, ps=None)
learners/channel_pruning/learner.py:548
↓ 2 callersMethod__quantile_init
Use quantiles of weights to initialize the quantization points. If bucketing is enabled, both 'split' and 'channel' applies. Args: *
learners/nonuniform_quantization/utils.py:349
↓ 2 callersMethod__restore_model
Restore a model from the latest checkpoint files. Args: * is_train: whether to restore a model for training
learners/uniform_quantization_tf/learner.py:333
↓ 2 callersMethod__restore_model
Restore a model from the latest checkpoint files. Args: * is_train: whether to restore a model for training
learners/channel_pruning_gpu/learner.py:533
↓ 2 callersMethod__restore_model
Restore a model from the latest checkpoint files. Args: * is_train: whether to restore a model for training
learners/discr_channel_pruning/learner.py:544
↓ 2 callersMethod__restore_model
Restore a model from the latest checkpoint files. Args: * is_train: whether to restore a model for training
learners/channel_pruning_rmt/learner.py:857
↓ 2 callersMethod__restore_model
(self, is_train)
learners/nonuniform_quantization/learner.py:435
↓ 2 callersMethod__restore_model
Restore a model from the latest checkpoint files. Args: * is_train: whether to restore a model for training
learners/full_precision/learner.py:193
↓ 2 callersMethod__restore_model
(self, is_train)
learners/uniform_quantization/learner.py:383
↓ 2 callersMethod__restore_model
(self, is_train)
learners/channel_pruning/learner.py:487
↓ 2 callersMethod__save_model
Save the current model.
learners/weight_sparsification/learner.py:334
↓ 2 callersMethod__save_model
(self)
learners/nonuniform_quantization/learner.py:426
↓ 2 callersMethod__save_model
(self)
learners/uniform_quantization/learner.py:372
↓ 2 callersMethod__save_model
(self)
learners/channel_pruning/learner.py:483
↓ 2 callersMethod__split_bucket
reshape weights according to bucket for 'split' type. Args: * w: A Tensor (weights) Returns: * A Tensor, shape [bucket_size, bucket_
learners/nonuniform_quantization/utils.py:435
↓ 2 callersMethod__sync_list_read
(cls, file_name)
learners/nonuniform_quantization/bit_optimizer.py:365
↓ 2 callersMethod__sync_list_read
(cls, file_name)
learners/uniform_quantization/bit_optimizer.py:360
↓ 2 callersMethod__sync_list_write
(cls, bit_list, file_name)
learners/nonuniform_quantization/bit_optimizer.py:358
↓ 2 callersMethod__sync_list_write
(cls, bit_list, file_name)
learners/uniform_quantization/bit_optimizer.py:353
↓ 2 callersMethod__uniform_init
Uniformly initialize the quantization points. If bucketing is enabled, both 'split' and 'channel' applies. Args: * nb_clusters: A Te
learners/nonuniform_quantization/utils.py:368
↓ 2 callersMethod__uniform_quantize
Uniform quantization function Args: * x: A Tensor (weights or activation output) * mbits: A scalar Tensor, tf.int64, spicifying number of
learners/uniform_quantization/utils.py:163
↓ 2 callersMethod__updt_bucket_storage
Calculate extra storage for the bucket scalling factors Args: * alpha: a Tensor, the scalling factor * beta: a Tensor, the scalling fact
learners/nonuniform_quantization/utils.py:487
↓ 2 callersFunction_fixed_padding
Pads the input along the spatial dimensions independently of input size. Pads the input such that if it was used in a convolution with 'VALID' padd
utils/external/mobilenet_v1.py:142
↓ 2 callersFunction_mean_image_subtraction
Subtracts the given means from each image channel. For example: means = [123.68, 116.779, 103.939] image = _mean_image_subtraction(image, m
utils/external/ssd_tensorflow/preprocessing/ssd_preprocessing.py:378
↓ 2 callersFunction_process_dataset
Process a complete data set and save it as a TFRecord. Args: name: string, unique identifier specifying the data set. directory: string, ro
utils/external/ssd_tensorflow/dataset/convert_tfrecords.py:356
↓ 2 callersFunction_resize_image
Simple wrapper around tf.resize_images. This is primarily to make sure we use the same `ResizeMethod` and other details each time. Args: i
utils/external/imagenet_preprocessing.py:206
↓ 2 callersFunction_set_arg_scope_defaults
Sets arg scope defaults for all items present in defaults. Args: defaults: dictionary/list of pairs, containing a mapping from function to
utils/external/mobilenet.py:73
↓ 2 callersFunction_split_divisible
Evenly splits num, num_ways so each piece is a multiple of divisible_by.
utils/external/conv_blocks.py:60
↓ 2 callersFunction_unmap
Unmap a subset of item (data) back to the original set of items (of size count)
utils/external/faster_rcnn_tensorflow/utility/anchor_target_layer_without_boxweight.py:130
↓ 2 callersMethodadapt
Adjust the standard deviation to meet the distance requirement between actions. Args: * dst_curr: current distance between clean & distorted
rl_agents/ddpg/noise.py:54
↓ 2 callersFunctionareas
(gt_bboxes)
utils/external/ssd_tensorflow/utility/anchor_manipulator.py:22
↓ 2 callersFunctionbuild_graph
Build a graph for training or evaluation. Args: * model_helper: model helper with definitions of model & dataset * unquant_node_names: list of
learners/uniform_quantization_tf/utils.py:151
↓ 2 callersFunctioncalc_loss_dcy
Calculate the weight-decaying loss. Args: * trainable_vars: list of trainable variables
rl_agents/ddpg/agent.py:66
↓ 2 callersMethodcalc_overall_prune_ratio
Calculate the overall pruning ratio. Returns: * prune_ratio: overall pruning ratio
learners/weight_sparsification/rl_helper.py:130
↓ 2 callersMethodcalc_reward
return the rl reward via reshaping
learners/nonuniform_quantization/rl_helper.py:79
↓ 2 callersMethodcalc_reward
return the rl reward via reshaping
learners/uniform_quantization/rl_helper.py:79
↓ 2 callersFunctioncheck_bboxes
(bboxes)
utils/external/ssd_tensorflow/preprocessing/ssd_preprocessing.py:351
↓ 2 callersFunctionconvert_pb_model_to_tflite
Convert *.pb model to a *.tflite model. Args: * net: network configurations * file_path_pb: file path to the *.pb model * file_path_tflite: f
tools/conversion/export_quant_tflite_model.py:78
↓ 2 callersFunctioncount_split_examples
(split_path, file_prefix='.tfrecord')
utils/external/ssd_tensorflow/dataset/dataset_inspect.py:23
↓ 2 callersMethodcreate_pruner
create a pruner
learners/channel_pruning/learner.py:144
↓ 2 callersFunctioncreate_session
Create a TensorFlow session. Return: * sess: TensorFlow session
learners/uniform_quantization_tf/utils.py:38
↓ 2 callersMethodevaluate
Restore a model from the latest checkpoint files and then evaluate it.
learners/uniform_quantization_tf/learner.py:139
↓ 2 callersMethodevaluate
Restore a model from the latest checkpoint files and then evaluate it.
learners/weight_sparsification/learner.py:143
↓ 2 callersMethodevaluate
Restore a model from the latest checkpoint files and then evaluate it.
learners/discr_channel_pruning/learner.py:171
↓ 2 callersMethodevaluate
(self)
learners/nonuniform_quantization/learner.py:159
↓ 2 callersMethodevaluate
Restore a model from the latest checkpoint files and then evaluate it.
learners/full_precision/learner.py:91
↓ 2 callersMethodevaluate
(self)
learners/uniform_quantization/learner.py:154
↓ 2 callersMethodevaluate
evaluate the model
learners/channel_pruning/learner.py:181
↓ 2 callersFunctionexport_pb_tflite_model
Export *.pb & *.tflite models from checkpoint files. Args: * net: network configurations * file_path_meta: file path to the *.meta data * fil
tools/conversion/export_chn_pruned_tflite_model.py:277
↓ 2 callersFunctionforward_fn
Forward pass function. Args: * inputs: inputs to the network's forward pass * is_train: whether to use the forward pass with training operation
nets/resnet_at_ilsvrc12.py:60
↓ 2 callersFunctionforward_fn
Forward pass function. Args: * inputs: inputs to the network's forward pass * is_train: whether to use the forward pass with training operation
nets/mobilenet_at_ilsvrc12.py:40
↓ 2 callersFunctionforward_fn
Forward pass function. Args: * inputs: input tensor to the network's forward pass * is_train: whether to use the forward pass with traini
nets/faster_rcnn_at_pascalvoc.py:218
↓ 2 callersFunctionforward_fn
Forward pass function. Args: * inputs: input tensor to the network's forward pass * is_train: whether to use the forward pass with training ope
nets/vgg_at_pascalvoc.py:219
↓ 2 callersFunctionforward_fn
Forward pass function. Args: * inputs: inputs to the network's forward pass * is_train: whether to use the forward pass with training operation
nets/resnet_at_cifar10.py:36
↓ 2 callersFunctionforward_fn
Forward pass function. Args: * inputs: inputs to the network's forward pass * data_format: data format ('channels_last' OR 'channels_first')
examples/convnet_at_fmnist.py:34
↓ 2 callersMethodget_Add_if_is_last_in_resblock
check whether the input operation is last layer before sum in a resual branch. Args: 'op': an operation Return: the name of
learners/channel_pruning/model_wrapper.py:304
↓ 2 callersFunctionget_data_format
Get the data format of convolutional layers. Returns: * data_format: data format of convolutional layers
tools/conversion/export_pb_tflite_models.py:88
↓ 2 callersFunctionget_maskable_vars
Get a list of maskable variables. Args: * trainable_vars: list of trainable variables Returns: * maskable_vars: list of maskable variables
learners/weight_sparsification/utils.py:19
↓ 2 callersMethodget_operations_by_types
Get all the operations of certain types in `otypes` within the model graph Args: otype: A list containing the type of returned operations
learners/channel_pruning/model_wrapper.py:69
↓ 2 callersFunctionget_ops_by_scope_n_patterns
Get list of operations within certain name scope and also matches the pattern. Args: * scope: name scope * patterns: list of name patterns to b
learners/weight_sparsification/pr_optimizer.py:51
↓ 2 callersFunctionget_perturb_op
Get operations for pertubing the model's parameters. Args: * model: original model * model_noisy: perturbed model * param_noise_std: standard
rl_agents/ddpg/agent.py:97
↓ 2 callersFunctionget_target_model_ops
Get operations related to the target model. Args: * model: original model * model_tr: target model Returns: * init_op: initialization oper
rl_agents/ddpg/agent.py:75
↓ 2 callersMethodinsert_quant_op_for_activations
Insert quantization operation for activation Args: * act_bit_dict: A dict with (key: act_op_name, value: act_bits)
learners/nonuniform_quantization/utils.py:58
↓ 2 callersMethodinsert_quant_op_for_activations
Insert quantization operation for activation Args: * act_bit_dict: A dict with (key: act_op_name, value: act_bits)
learners/uniform_quantization/utils.py:51
↓ 2 callersMethodinsert_quant_op_for_weights
Insert quantization operation for weights Args: * wewight_bit_dict: A dict with (key: matmul_op_name, value: quant_bits)
learners/nonuniform_quantization/utils.py:87
↓ 2 callersMethodinsert_quant_op_for_weights
Insert quantization operation for weights Args: * wewight_bit_dict: A dict with (key: matmul_op_name, value: quant_bits)
learners/uniform_quantization/utils.py:81
↓ 2 callersFunctionmobilenetv2_scope
Defines Mobilenet training scope. In default. We do not use BN ReWrite the scope.
utils/external/faster_rcnn_tensorflow/net/mobilenet_v2_faster_rcnn.py:75
↓ 2 callersMethodoutput_channels
get the number of channels of a convolution output
learners/channel_pruning/model_wrapper.py:249
↓ 2 callersFunctionparse_comma_list
(args)
utils/external/ssd_tensorflow/train_ssd.py:405
↓ 2 callersFunctionparse_comma_list
(args)
utils/external/ssd_tensorflow/dataset/convert_tfrecords.py:378
↓ 2 callersFunctionparse_comma_list
Convert a comma-separated list to a list of floating-point numbers.
nets/vgg_at_pascalvoc.py:79
↓ 2 callersFunctionprefix_filter
filter out the variable_scope
learners/nonuniform_quantization/utils.py:23
↓ 2 callersFunctionprefix_filter
filter out the variable_scope
learners/uniform_quantization/utils.py:24
↓ 2 callersMethodrel_error
calcualte relative error
learners/channel_pruning/channel_pruner.py:437
↓ 2 callersFunctionreplaceScript
(script, src)
docs/docs/MathJax.js:5
↓ 2 callersMethodreset
Reset the standard deviation.
rl_agents/ddpg/noise.py:49
↓ 2 callersFunctionreshape_fn
(preds, nb_dims)
nets/vgg_at_pascalvoc.py:259
↓ 2 callersMethodresidual_branch_diff
calculate the difference between before and after weight pruning for a certain branch sum
learners/channel_pruning/channel_pruner.py:579
↓ 2 callersFunctionrestore_vals_from_file
Restore a list of values from a plain text file. Args: * file_path: file path Returns: * vals: list of values
learners/weight_sparsification/pr_optimizer.py:83
↓ 2 callersMethodsample
Sample a mini-batch of trasitions. Args: * batch_size: number of transitions in the mini-batch Returns: * mbatch: a mini-batch of tr
rl_agents/ddpg/replay_buffer.py:108
← previousnext →101–200 of 751, ranked by callers