MCPcopy Create free account

hub / github.com/Tencent/PocketFlow / functions

Functions751 in github.com/Tencent/PocketFlow

↓ 2 callersMethodsave_model
save the current model to the `FLAGS.channel_pruned_path`
learners/channel_pruning/channel_pruner.py:801
↓ 2 callersFunctionsave_vals_to_file
Save a list of values to a plain text file. Args: * vals: list of values * file_path: file path
learners/weight_sparsification/pr_optimizer.py:72
↓ 2 callersMethodsearch_activation_op
search activation operation in graph for quantization
learners/nonuniform_quantization/utils.py:133
↓ 2 callersMethodsearch_activation_op
search activation operation in graph for quantization
learners/uniform_quantization/utils.py:127
↓ 2 callersMethodsearch_matmul_op
search matmul or Conv2D operations in graph for quantization
learners/nonuniform_quantization/utils.py:121
↓ 2 callersMethodsearch_matmul_op
search matmul or Conv2D operations in graph for quantization
learners/uniform_quantization/utils.py:115
↓ 2 callersFunctionsetup_anchor_info
Setup the anchor bounding boxes' information.
nets/vgg_at_pascalvoc.py:84
↓ 2 callersFunctionsplit_conv
Creates a split convolution. Split convolution splits the input and output into 'num_blocks' blocks of approximately the same size each, and on
utils/external/conv_blocks.py:317
↓ 2 callersFunctiontest_tflite_model
Test the *.tflite model. Args: * file_path: file path to the *.tflite model * net_input_data: network's input node's data
tools/conversion/export_quant_tflite_model.py:136
↓ 2 callersMethodupdt
Update running averages with a list of samples. Args: * x_new: np.array of list of samples (N x D)
rl_agents/ddpg/running_mean_std.py:62
↓ 1 callersMethod__action_constraint
constraint action during reinfocement learning search
learners/channel_pruning/channel_pruner.py:166
↓ 1 callersMethod__arrange_layer_bits
(self, layer_idxs, w_bit_list)
learners/nonuniform_quantization/bit_optimizer.py:304
↓ 1 callersMethod__arrange_layer_bits
(self, layer_idxs, w_bit_list)
learners/uniform_quantization/bit_optimizer.py:311
↓ 1 callersMethod__build
Build actor & critic networks, replay buffer, and noise generators. Args: * s_dims: number of state vector's dimensions * a_dims: number
rl_agents/ddpg/agent.py:249
↓ 1 callersMethod__build
(self)
learners/channel_pruning/channel_pruner.py:103
↓ 1 callersMethod__build_block_ops
Build block-wise fine-tuning operations. Returns: * block_train_ops: list of training operations for each block * block_init_opt_ops: lis
learners/discr_channel_pruning/learner.py:394
↓ 1 callersMethod__build_bucket_norm_quant_point
Build the quantization points on [0, 1] and quantize 'x_normalized', the function applies for both type 'split' and 'channel'. Args:
learners/nonuniform_quantization/utils.py:309
↓ 1 callersMethod__build_conv_info_list
Build a list of Conv2D operation's information. Args: * conv_krnls_prnd: list of convolutional kernels in the channel-pruned model Retur
learners/channel_pruning_rmt/learner.py:396
↓ 1 callersMethod__build_eval
Build the evaluation graph.
learners/uniform_quantization_tf/learner.py:261
↓ 1 callersMethod__build_eval
Build the evaluation graph.
learners/channel_pruning_gpu/learner.py:296
↓ 1 callersMethod__build_eval
Build the evaluation graph.
learners/weight_sparsification/learner.py:222
↓ 1 callersMethod__build_eval
Build the evaluation graph for the 'optimal' protocol. Args: * model_helper: model helper with definitions of model & dataset
learners/weight_sparsification/pr_optimizer.py:230
↓ 1 callersMethod__build_eval
Build the evaluation graph.
learners/discr_channel_pruning/learner.py:289
↓ 1 callersMethod__build_eval
Build the evaluation graph.
learners/channel_pruning_rmt/learner.py:287
↓ 1 callersMethod__build_eval
(self)
learners/nonuniform_quantization/learner.py:306
↓ 1 callersMethod__build_eval
(self)
learners/uniform_quantization/learner.py:266
↓ 1 callersMethod__build_extra_losses
Build extra losses for regression. Returns: * reg_losses: list of regression losses (one per layer)
learners/channel_pruning_gpu/learner.py:339
↓ 1 callersMethod__build_extra_losses
Build extra losses for regression & discrimination. Args: * labels: one-hot label vectors Returns: * reg_losses: list of regression
learners/discr_channel_pruning/learner.py:329
↓ 1 callersMethod__build_layer_ops
Build layer-wise fine-tuning operations. Returns: * layer_ops: list of training and initialization operations for each layer * lrn_rates_
learners/channel_pruning_gpu/learner.py:356
↓ 1 callersMethod__build_layer_ops
Build layer-wise fine-tuning operations. Returns: * layer_train_ops: list of training operations for each layer * layer_init_opt_ops: lis
learners/discr_channel_pruning/learner.py:366
↓ 1 callersMethod__build_layer_rg_ops
Build operations for layerwise regression. Returns: * init_op: initialization operation * train_ops: list of training operations, one per
learners/weight_sparsification/pr_optimizer.py:283
↓ 1 callersMethod__build_masks
build masks and corresponding operations for weight sparsification. Returns: * masks: list of masks for weight sparsification * prune_op:
learners/weight_sparsification/learner.py:260
↓ 1 callersMethod__build_masks
Build pruning masks for all the maskable variables. Returns: * masks: list of pruning masks * pr_all: placeholder of all the pruning rati
learners/weight_sparsification/pr_optimizer.py:256
↓ 1 callersMethod__build_meta_lasso
Build a meta LASSO optimization problem.
learners/channel_pruning_rmt/learner.py:432
↓ 1 callersMethod__build_meta_lstsq
Build a meta least-square optimization problem.
learners/channel_pruning_rmt/learner.py:470
↓ 1 callersMethod__build_minimal
Build the minimal graph for 'uniform' & 'heurist' protocols. Args: * model_helper: model helper with definitions of model & dataset
learners/weight_sparsification/pr_optimizer.py:146
↓ 1 callersMethod__build_network_ft_ops
Build operations for network fine-tuning. Args: * loss: loss function's value Returns: * init_op: initialization operation * tra
learners/weight_sparsification/pr_optimizer.py:316
↓ 1 callersMethod__build_network_ops
Build network training operations. Returns: * train_op: training operation of the whole network * init_opt_op: initialization operation o
learners/channel_pruning_gpu/learner.py:404
↓ 1 callersMethod__build_network_ops
Build network training operations. Returns: * train_op: training operation of the whole network * init_opt_op: initialization operation o
learners/discr_channel_pruning/learner.py:419
↓ 1 callersMethod__build_norm_quant_point
Build the quantization points on [0, 1] and quantize 'x_normalized', the function applies for no_bucket and channel-wise bucket. Args:
learners/nonuniform_quantization/utils.py:284
↓ 1 callersMethod__build_prune
Build the channel pruning graph.
learners/channel_pruning_rmt/learner.py:332
↓ 1 callersMethod__build_pruned_train_model
build a training model from pruned model
learners/channel_pruning/learner.py:313
↓ 1 callersMethod__build_rl_helper_n_agent
Build the RL helper and controller / agent. Args: * sess: TensorFlow session Returns: * rl_helper: RL helper * agent: RL control
learners/weight_sparsification/pr_optimizer.py:359
↓ 1 callersMethod__build_train
Build the training graph.
learners/uniform_quantization_tf/learner.py:155
↓ 1 callersMethod__build_train
Build the training graph.
learners/channel_pruning_gpu/learner.py:200
↓ 1 callersMethod__build_train
Build the training graph.
learners/weight_sparsification/learner.py:154
↓ 1 callersMethod__build_train
Build the training graph for the 'optimal' protocol. Args: * model_helper: model helper with definitions of model & dataset
learners/weight_sparsification/pr_optimizer.py:169
↓ 1 callersMethod__build_train
Build the training graph.
learners/discr_channel_pruning/learner.py:182
↓ 1 callersMethod__build_train
Build the training graph.
learners/channel_pruning_rmt/learner.py:211
↓ 1 callersMethod__build_train
(self)
learners/nonuniform_quantization/learner.py:185
↓ 1 callersMethod__build_train
(self)
learners/uniform_quantization/learner.py:181
↓ 1 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/learner.py:314
↓ 1 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_rmt/learner.py:525
↓ 1 callersMethod__calc_grads_pruned
Calculate the pruned gradients Args: * grads_origin: the original gradient Return: * the pruned gradients * the corresponding mas
learners/channel_pruning/learner.py:381
↓ 1 callersMethod__calc_heurist_prune_ratios
Calculate pruning ratios using the 'heurist' protocol. Returns: * var_names_n_prune_ratios: list of variable name & pruning ratio pairs
learners/weight_sparsification/pr_optimizer.py:394
↓ 1 callersMethod__calc_loss_n_accuracy
(self, feed_dict)
learners/nonuniform_quantization/bit_optimizer.py:321
↓ 1 callersMethod__calc_loss_n_accuracy
evaluate on the validation set
learners/uniform_quantization/bit_optimizer.py:287
↓ 1 callersMethod__calc_optimal_bits
(self)
learners/nonuniform_quantization/bit_optimizer.py:144
↓ 1 callersMethod__calc_optimal_bits
(self)
learners/uniform_quantization/bit_optimizer.py:137
↓ 1 callersMethod__calc_optimal_prune_ratios
Calculate pruning ratios using the 'optimal' protocol. Returns: * var_names_n_prune_ratios: list of variable name & pruning ratio pairs
learners/weight_sparsification/pr_optimizer.py:411
↓ 1 callersMethod__calc_prune_ratio_dyn
Calculate the dynamic pruning ratio. Args: * prune_ratio_fnl: final pruning ratio Returns: * prune_ratio_dyn: dynamic pruning ratio
learners/weight_sparsification/learner.py:296
↓ 1 callersMethod__calc_prune_ratio_min_max
Calculate the minimal & maximal pruning ratio for the chosen maskable variable. Args: * idx: index to the chosen maskable variable Retur
learners/weight_sparsification/rl_helper.py:139
↓ 1 callersMethod__calc_reward
(cls, accuracy, flops)
learners/channel_pruning/learner.py:612
↓ 1 callersMethod__calc_rlout_actions
Calculate actions within one roll-out. Returns: * prune_ratios: list of pruning ratios * states_n_actions: list of state vector and actio
learners/weight_sparsification/pr_optimizer.py:472
↓ 1 callersMethod__calc_rlout_reward
Calculate the reward of the current roll-out. Args: * prune_ratios: list of pruning ratios Returns: * reward: reward of the current
learners/weight_sparsification/pr_optimizer.py:494
↓ 1 callersMethod__calc_rollout_actions
(self, idx_rlout)
learners/nonuniform_quantization/bit_optimizer.py:203
↓ 1 callersMethod__calc_rollout_actions
(self, idx_rlout)
learners/uniform_quantization/bit_optimizer.py:256
↓ 1 callersMethod__calc_rollout_reward
(self, feed_dict_train, feed_dict_eval, layer_bits)
learners/nonuniform_quantization/bit_optimizer.py:226
↓ 1 callersMethod__calc_rollout_reward
(self, feed_dict_train, feed_dict_eval, layer_bits)
learners/uniform_quantization/bit_optimizer.py:197
↓ 1 callersMethod__calc_uniform_prune_ratios
Calculate pruning ratios using the 'uniform' protocol. Returns: * var_names_n_prune_ratios: list of variable name & pruning ratio pairs
learners/weight_sparsification/pr_optimizer.py:385
↓ 1 callersMethod__calc_w_duty
Compute the maximum bits used for layer idx
learners/nonuniform_quantization/rl_helper.py:91
↓ 1 callersMethod__calc_w_duty
Compute the maximum bits used for layer idx
learners/uniform_quantization/rl_helper.py:91
↓ 1 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/uniform_quantization/utils.py:276
↓ 1 callersMethod__check_bits
(self, bit_list)
learners/nonuniform_quantization/bit_optimizer.py:312
↓ 1 callersMethod__check_bits
(self, bit_list)
learners/uniform_quantization/bit_optimizer.py:319
↓ 1 callersMethod__choose_channels
Choose channels for all convolutional layers.
learners/channel_pruning_gpu/learner.py:445
↓ 1 callersMethod__choose_channels
Choose channels for all convolutional layers.
learners/channel_pruning_rmt/learner.py:546
↓ 1 callersMethod__choose_discr_chns
Choose discrimination-aware channels.
learners/discr_channel_pruning/learner.py:461
↓ 1 callersMethod__create_extractor
create extracters which would be used to extract input of a convolution
learners/channel_pruning/channel_pruner.py:343
↓ 1 callersMethod__evaluate
Evaluate the model's loss & accuracy.
learners/distillation_helper.py:147
↓ 1 callersMethod__extract_input
extract the input X (k_h, k_w, c) of a conv layer Args: conv: a convolution operation Returns: bathces of X (N, k_h, k_w, c)
learners/channel_pruning/channel_pruner.py:391
↓ 1 callersMethod__extract_new_features
extract new feature map via re-sampling some points
learners/channel_pruning/channel_pruner.py:361
↓ 1 callersMethod__extract_output_of_conv_and_sum
Extract output tensor name of convolution layers and sum layers in a residual block
learners/channel_pruning/channel_pruner.py:215
↓ 1 callersMethod__global_finetune
(self, feed_dict_train)
learners/nonuniform_quantization/bit_optimizer.py:278
↓ 1 callersMethod__global_finetune
(self, feed_dict_train)
learners/uniform_quantization/bit_optimizer.py:245
↓ 1 callersMethod__init__
(self, allowed_borders, positive_threshold, ignore_threshold, prior_scaling, clip=False)
utils/external/ssd_tensorflow/utility/anchor_manipulator.py:111
↓ 1 callersMethod__init__
(self, name, **kwargs)
utils/external/ssd_tensorflow/net/ssd_net.py:57
↓ 1 callersMethod__initialize
Initialize a model for training with the distillation loss. Note: If the pre-trained model is not available on HDFS, then a new model will be tra
learners/distillation_helper.py:105
↓ 1 callersMethod__inv_scale
Inversed linear scale function Args: * w: A Tensor (weights or activation output) * alpha: A float value, scale factor * bete: A floa
learners/uniform_quantization/utils.py:233
↓ 1 callersMethod__layerwise_finetune
(self, feed_dict_train, layer_bits)
learners/nonuniform_quantization/bit_optimizer.py:266
↓ 1 callersMethod__layerwise_finetune
(self, feed_dict_train, layer_bits)
learners/uniform_quantization/bit_optimizer.py:233
↓ 1 callersMethod__monitor_progress
Monitor the training progress. Args: * summary: summary protocol buffer * log_rslt: logging operations' results * idx_iter: index of
learners/uniform_quantization_tf/learner.py:347
↓ 1 callersMethod__monitor_progress
Monitor the training progress. Args: * summary: summary protocol buffer * log_rslt: logging operations' results * idx_iter: index of
learners/channel_pruning_gpu/learner.py:547
↓ 1 callersMethod__monitor_progress
Monitor the training progress. Args: * summary: summary protocol buffer * log_rslt: logging operations' results * idx_iter: index of
learners/weight_sparsification/learner.py:354
↓ 1 callersMethod__monitor_progress
Monitor the training progress. Args: * summary: summary protocol buffer * log_rslt: logging operations' results * idx_iter: index of
learners/discr_channel_pruning/learner.py:558
↓ 1 callersMethod__monitor_progress
Monitor the training progress. Args: * summary: summary protocol buffer * log_rslt: logging operations' results * idx_iter: index of
learners/channel_pruning_rmt/learner.py:871
↓ 1 callersMethod__monitor_progress
(self, summary, log_rslt, time_prev, idx_iter)
learners/nonuniform_quantization/learner.py:444
↓ 1 callersMethod__monitor_progress
(self, idx_iter, log_rslt, time_prev)
learners/nonuniform_quantization/bit_optimizer.py:333
↓ 1 callersMethod__monitor_progress
Monitor the training progress. Args: * summary: summary protocol buffer * log_rslt: logging operations' results * idx_iter: index of
learners/full_precision/learner.py:207
↓ 1 callersMethod__monitor_progress
(self, summary, log_rslt, time_prev, idx_iter)
learners/uniform_quantization/learner.py:395
← previousnext →201–300 of 751, ranked by callers