MCPcopy Create free account

hub / github.com/Tencent/PocketFlow / functions

Functions751 in github.com/Tencent/PocketFlow

↓ 1 callersMethod__monitor_progress
(self, idx_iter, log_rslt, time_prev)
learners/uniform_quantization/bit_optimizer.py:328
↓ 1 callersMethod__monitor_progress
(self, summary, log_rslt)
learners/channel_pruning/learner.py:495
↓ 1 callersMethod__prune_and_finetune_auto
(self)
learners/channel_pruning/learner.py:593
↓ 1 callersMethod__prune_and_finetune_list
prune with a list of compression ratio
learners/channel_pruning/learner.py:531
↓ 1 callersMethod__prune_and_finetune_uniform
prune with a list of compression ratio
learners/channel_pruning/learner.py:513
↓ 1 callersMethod__prune_n_layers
(self, n, queue)
learners/channel_pruning/learner.py:553
↓ 1 callersMethod__prune_rl
search pruning strategy with reinforcement learning
learners/channel_pruning/learner.py:623
↓ 1 callersMethod__quantize_eval_graph
Insert Quantization nodes to the eval graph
learners/nonuniform_quantization/learner.py:387
↓ 1 callersMethod__quantize_eval_graph
Insert quantization nodes to the evaluation graph.
learners/uniform_quantization/learner.py:342
↓ 1 callersMethod__quantize_train_graph
Insert Quantization nodes to the training graph
learners/nonuniform_quantization/learner.py:349
↓ 1 callersMethod__quantize_train_graph
Insert quantization nodes to the training graph.
learners/uniform_quantization/learner.py:311
↓ 1 callersMethod__record_rlout_transitions
Record transitions of the current roll-out. Args: * states_n_actions: list of state vector and action pairs * reward: reward of the curre
learners/weight_sparsification/pr_optimizer.py:566
↓ 1 callersMethod__record_rollout_transitions
(self, states_n_actions, reward)
learners/nonuniform_quantization/bit_optimizer.py:286
↓ 1 callersMethod__record_rollout_transitions
(self, states_n_actions, reward)
learners/uniform_quantization/bit_optimizer.py:299
↓ 1 callersMethod__restore
Restore a pre-trained model with the variable scope renamed.
learners/distillation_helper.py:122
↓ 1 callersMethod__restore_model
Restore a model from the latest checkpoint files. Args: * is_train: whether to restore a model for training
learners/weight_sparsification/learner.py:340
↓ 1 callersMethod__retrain_network
Retrain the network with layerwise regression & network fine-tuning.
learners/weight_sparsification/pr_optimizer.py:542
↓ 1 callersMethod__safe_check
TODO: Check the name of bucket_type, the value of bucket_size
learners/nonuniform_quantization/utils.py:478
↓ 1 callersMethod__safe_check
TODO: Check the name of bucket_type, the value of bucket_size
learners/uniform_quantization/utils.py:291
↓ 1 callersMethod__save_in_progress_pruned_model
save a in progress training model with a max evaluation result
learners/channel_pruning/learner.py:478
↓ 1 callersMethod__scale
linear scale function Args: * w: A Tensor (weights or activation output), the shape is [bucket_size, bucekt_num] if use_buckets else
learners/uniform_quantization/utils.py:201
↓ 1 callersMethod__setup_action_noise
Setup the action noise. Args: * a_min: minimal value in the action vector * a_max: maximal value in the action vector Returns: *
rl_agents/ddpg/agent.py:329
↓ 1 callersMethod__setup_actor_init_updt_ops
Setup actor network's initialization & update operations. Returns: * actor_loss: actor network's loss
rl_agents/ddpg/agent.py:384
↓ 1 callersMethod__setup_critic_init_updt_ops
Setup critic network's initialization & update operations. Returns: * critic_loss: critic network's loss
rl_agents/ddpg/agent.py:399
↓ 1 callersMethod__setup_param_noise
Setup the parameter noise. Args: * normalized_states: normalized state vectors * a_dims: number of action vector's dimensions * a_min
rl_agents/ddpg/agent.py:345
↓ 1 callersMethod__setup_target_init_updt_ops
Setup target network's initialization & update operations.
rl_agents/ddpg/agent.py:376
↓ 1 callersMethod__show_bucket_storage
(self, bucket_storage)
learners/nonuniform_quantization/learner.py:470
↓ 1 callersMethod__show_bucket_storage
(self, bucket_storage)
learners/uniform_quantization/learner.py:422
↓ 1 callersMethod__smpl_inputs_n_outputs
Sample inputs & outputs of sub-regions from full feature maps. Args: Returns:
learners/channel_pruning_rmt/learner.py:651
↓ 1 callersMethod__solve_sparse_regression
Solve the sparsity-constrained regression problem. Args: * inputs_np_list: list of input feature maps (one per input channel, N x k^2) *
learners/channel_pruning_rmt/learner.py:727
↓ 1 callersMethod__split_bucket
Create bucket Args: * w: A Tensor (weights) Returns: * A Tensor, with shape [bucket_size, multiple] * An integer: the number of
learners/uniform_quantization/utils.py:247
↓ 1 callersMethod__train_pruned_model
Train pruned model
learners/channel_pruning/learner.py:423
↓ 1 callersMethod__train_rl_agent
(self, idx_rlout)
learners/nonuniform_quantization/bit_optimizer.py:298
↓ 1 callersMethod__train_rl_agent
(self, idx_rlout)
learners/uniform_quantization/bit_optimizer.py:280
↓ 1 callersMethod__uniform_quantize
Uniform quantization function Args: * x: A Tensor (weights or activation output) * mbits: A scalar Tensor, tf.int64, spicifying number of
learners/nonuniform_quantization/utils.py:245
↓ 1 callersMethod__updt_bucket_storage
Calculate extra storage for the bucket scalling factors Args: * bucket_num: a Tensor, the number of buckets, and 2*bucket_num scalling facto
learners/uniform_quantization/utils.py:299
↓ 1 callersFunction_aspect_preserving_resize
Resize images preserving the original aspect ratio. Args: image: A 3-D image `Tensor`. resize_min: A python integer or scalar `Tensor` indi
utils/external/imagenet_preprocessing.py:187
↓ 1 callersFunction_bytes_list_feature
Wrapper for inserting a list of bytes features into Example proto.
utils/external/ssd_tensorflow/dataset/convert_tfrecords.py:77
↓ 1 callersFunction_central_crop
Performs central crops of the given image list. Args: image: a 3-D image tensor crop_height: the height of the image following the crop.
utils/external/imagenet_preprocessing.py:100
↓ 1 callersFunction_compute_targets
Compute bounding-box regression targets for an image.
utils/external/faster_rcnn_tensorflow/utility/anchor_target_layer_without_boxweight.py:144
↓ 1 callersFunction_compute_targets
Compute bounding-box regression targets for an image. that is : [label, tx, ty, tw, th]
utils/external/faster_rcnn_tensorflow/utility/proposal_target_layer.py:103
↓ 1 callersFunction_convert_to_example
Build an Example proto for an example. Args: filename: string, path to an image file, e.g., '/path/to/example.JPG' image_buffer: string, JP
utils/external/ssd_tensorflow/dataset/convert_tfrecords.py:90
↓ 1 callersFunction_decode_crop_and_flip
Crops the given image to a random part of the image, and randomly flips. We use the fused decode_and_crop op, which performs better than the two op
utils/external/imagenet_preprocessing.py:51
↓ 1 callersFunction_find_image_bounding_boxes
Find the bounding boxes for a given image file. Args: directory: string; the path of all datas. cur_record: list of strings; the first of w
utils/external/ssd_tensorflow/dataset/convert_tfrecords.py:201
↓ 1 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.py:36
↓ 1 callersFunction_get_bbox_regression_labels
Bounding-box regression targets (bbox_target_data) are stored in a compact form N x (class, tx, ty, tw, th) This function expands those targe
utils/external/faster_rcnn_tensorflow/utility/proposal_target_layer.py:80
↓ 1 callersFunction_make_divisible
(v, divisor, min_value=None)
utils/external/mobilenet.py:62
↓ 1 callersFunction_make_divisible
(v, divisor, min_value=None)
utils/external/conv_blocks.py:50
↓ 1 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/imagenet_preprocessing.py:122
↓ 1 callersMethod_model_variable_scope
Returns a variable scope that the model should be created under. If self.dtype is a castable type, model variable will be created in fp32 the
utils/external/resnet_model.py:476
↓ 1 callersFunction_process_image
Process a single image file. Args: filename: string, path to an image file e.g., '/path/to/example.JPG'. coder: instance of ImageCoder to p
utils/external/ssd_tensorflow/dataset/convert_tfrecords.py:175
↓ 1 callersFunction_process_image_files
Process and save list of images as TFRecord of Example protos. Args: name: string, unique identifier specifying the data set directory: str
utils/external/ssd_tensorflow/dataset/convert_tfrecords.py:317
↓ 1 callersFunction_reduced_kernel_size_for_small_input
Define kernel size which is automatically reduced for small input. If the shape of the input images is unknown at graph construction time this fu
utils/external/mobilenet_v1.py:406
↓ 1 callersFunction_sample_rois
Generate a random sample of RoIs comprising foreground and background examples. all_rois shape is [-1, 4] gt_boxes shape is [-1, 5]. that
utils/external/faster_rcnn_tensorflow/utility/proposal_target_layer.py:123
↓ 1 callersFunction_scope_all
(scope, default_scope=None)
utils/external/mobilenet.py:298
↓ 1 callersFunction_smallest_size_at_least
Computes new shape with the smallest side equal to `smallest_side`. Computes new shape with the smallest side equal to `smallest_side` while pres
utils/external/imagenet_preprocessing.py:156
↓ 1 callersFunction_v1_compatible_scope_naming
(scope)
utils/external/conv_blocks.py:79
↓ 1 callersFunctionadd_anchor_img_smry
(img, anchors, labels)
nets/faster_rcnn_at_pascalvoc.py:204
↓ 1 callersFunctionadd_roi_batch_img_smry
(img, rois, labels)
nets/faster_rcnn_at_pascalvoc.py:190
↓ 1 callersFunctionapply_fake_pruning
Apply fake pruning to the convolutional kernel. Args: * kernel: original convolutional kernel Returns: * kernel: randomly pruned convolution
tools/conversion/export_pb_tflite_models.py:120
↓ 1 callersFunctionapply_fake_pruning
Apply fake pruning to the convolutional kernel. Args: * kernel: original convolutional kernel Returns: * kernel: randomly pruned convolution
tools/conversion/export_chn_pruned_tflite_model.py:184
↓ 1 callersFunctionapply_with_random_selector
Computes func(x, sel), with sel sampled from [0...num_cases-1]. Args: x: input Tensor. func: Python function to apply. num_cases: Pytho
utils/external/ssd_tensorflow/preprocessing/ssd_preprocessing.py:64
↓ 1 callersFunctionbbox_overlaps
Parameters ---------- boxes: (N, 4) ndarray of float query_boxes: (K, 4) ndarray of float Returns ------- overlaps: (N, K) ndarray of o
utils/external/faster_rcnn_tensorflow/utility/anchor_target_layer_without_boxweight.py:18
↓ 1 callersFunctionbbox_overlaps
Parameters ---------- boxes: (N, 4) ndarray of float query_boxes: (K, 4) ndarray of float Returns ------- overlaps: (N, K) ndarray of o
utils/external/faster_rcnn_tensorflow/utility/proposal_target_layer.py:16
↓ 1 callersFunctionblock_layer
Creates one layer of blocks for the ResNet model. Args: inputs: A tensor of size [batch, channels, height_in, width_in] or [batch, height
utils/external/resnet_model.py:317
↓ 1 callersMethodbuild
(self, input_shape)
utils/external/ssd_tensorflow/net/ssd_net.py:60
↓ 1 callersFunctionbuild_base_network
(inputs, is_train)
nets/faster_rcnn_at_pascalvoc.py:40
↓ 1 callersFunctionbuild_env_n_agent
Build the environment and an RL agent to solve it. Args: * sess: TensorFlow session Returns: * env: environment * agent: RL agent
rl_agents/unit_tests/pendulum_v0.py:33
↓ 1 callersFunctionbuild_env_n_agent
Build the environment and an RL agent to solve it. Args: * sess: TensorFlow session Returns: * env: environment * agent: RL agent
rl_agents/unit_tests/move_to_target.py:67
↓ 1 callersFunctionbuild_fastrcnn
(is_train, feature_to_cropped, rois, img_shape)
nets/faster_rcnn_at_pascalvoc.py:48
↓ 1 callersFunctioncalc_loss_fn
Calculate the loss function's value. Args: * objects: one tensor with all the annotations packed together * outputs: a dictionary of outp
nets/faster_rcnn_at_pascalvoc.py:393
↓ 1 callersFunctioncalc_loss_fn
Calculate the loss function's value. Args: * objects: one tensor with all the annotations packed together * outputs: a dictionary of output ten
nets/vgg_at_pascalvoc.py:286
↓ 1 callersMethodcalc_state
Calculate the state vector for the chosen maskable variable. Args: * idx: index to the chosen maskable variable Returns: * state: st
learners/weight_sparsification/rl_helper.py:73
↓ 1 callersMethodcalc_state
return the rl state
learners/nonuniform_quantization/rl_helper.py:74
↓ 1 callersMethodcalc_state
return the rl state
learners/uniform_quantization/rl_helper.py:74
↓ 1 callersMethodcalc_w
Args: * action: An ndarray with shape (1,1), the output of actor network * idx: A scalar, the id of layer * num_weights: A list of sc
learners/nonuniform_quantization/rl_helper.py:97
↓ 1 callersMethodcalc_w
Generatee the action that satisfies the resource constraint Args: * action: an ndarray with shape (1,1), the output of actor network; *
learners/uniform_quantization/rl_helper.py:97
↓ 1 callersFunctioncheck_roi_center
(width, height, labels, bboxes)
utils/external/ssd_tensorflow/preprocessing/ssd_preprocessing.py:186
↓ 1 callersFunctioncheck_roi_overlap
(width, height, labels, bboxes, min_iou)
utils/external/ssd_tensorflow/preprocessing/ssd_preprocessing.py:224
↓ 1 callersFunctionclip_bboxes
(ymin, xmin, ymax, xmax, name)
utils/external/ssd_tensorflow/simple_ssd_demo.py:89
↓ 1 callersFunctionclip_bboxes
(ymin, xmin, ymax, xmax, name)
utils/external/ssd_tensorflow/eval_ssd.py:201
↓ 1 callersFunctionclip_bboxes
(ymin, xmin, ymax, xmax, name)
nets/vgg_at_pascalvoc.py:155
↓ 1 callersFunctioncolors_subselect
(colors, num_classes=21)
utils/external/ssd_tensorflow/utility/draw_toolbox.py:28
↓ 1 callersMethodcompute_pruned_kernel
compute which channels to be pruned by lasso
learners/channel_pruning/channel_pruner.py:456
↓ 1 callersFunctionconvert_pb_model_to_tflite
Convert the *.pb model to a *.tflite model. Args: * net: network configurations * pb_path: path to the *.pb file * tflite_path: path to the *
tools/conversion/export_pb_tflite_models.py:213
↓ 1 callersFunctionconvert_pb_model_to_tflite
Convert *.pb model to a *.tflite model. Args: * file_path_pb: file path to the *.pb model * file_path_tflite: file path to the *.tflite model
tools/conversion/export_chn_pruned_tflite_model.py:92
↓ 1 callersMethodcvt_action_to_prune_ratio
Convert action to pruning ratio for the chosen maskable variable. Args: * idx: index to the chosen maskable variable * action: action's v
learners/weight_sparsification/rl_helper.py:109
↓ 1 callersFunctiondistort_color
Distort the color of a Tensor image. Each color distortion is non-commutative and thus ordering of the color ops matters. Ideally we would random
utils/external/ssd_tensorflow/preprocessing/ssd_preprocessing.py:83
↓ 1 callersFunctiondo_dual_max_match
overlap_matrix: num_gt * num_anchors
utils/external/ssd_tensorflow/utility/anchor_manipulator.py:51
↓ 1 callersFunctiondraw_a_rectangel_in_img
use draw lines to draw rectangle. since the draw_rectangle func can not modify the width of rectangle :param draw_obj: :param box: [x1, y
utils/external/faster_rcnn_tensorflow/utility/draw_box_in_img.py:51
↓ 1 callersFunctiondraw_label_with_scores
(draw_obj, box, label, score, color)
utils/external/faster_rcnn_tensorflow/utility/draw_box_in_img.py:87
↓ 1 callersFunctionenum_ratios
ratio = h /w :param anchors: :param anchor_ratios: :return:
utils/external/faster_rcnn_tensorflow/utility/anchor_utils.py:50
↓ 1 callersFunctionenum_scales
(base_anchor, anchor_scales)
utils/external/faster_rcnn_tensorflow/utility/anchor_utils.py:43
↓ 1 callersFunctioneval_agent
Evaluate the RL agent through multiple roll-outs. Args: * sess: TensorFlow session * env: environment * agent: RL agent
rl_agents/unit_tests/pendulum_v0.py:84
↓ 1 callersFunctioneval_agent
Evaluate the RL agent through multiple roll-outs. Args: * sess: TensorFlow session * env: environment * agent: RL agent
rl_agents/unit_tests/move_to_target.py:118
↓ 1 callersFunctionexpand_input_by_factor
(n, divisible_by=8)
utils/external/conv_blocks.py:158
↓ 1 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_quant_tflite_model.py:196
↓ 1 callersFunctionexport_pb_tflite_model
Export *.pb & *.tflite models from checkpoint files. Args: * net: network configurations * meta_path: path to the *.meta file * pb_path: path
tools/conversion/export_pb_tflite_models.py:296
↓ 1 callersFunctionexport_tflite_model
Export a *.tflite model from checkpoint files. Args: * input_coll: input collection's name * output_coll: output collection's name Returns:
learners/uniform_quantization_tf/utils.py:79
↓ 1 callersMethodext_decode_all_anchors
(self, pred_location, all_anchors, all_num_anchors_depth, all_num_anchors_spatial)
utils/external/ssd_tensorflow/utility/anchor_manipulator.py:223
← previousnext →301–400 of 751, ranked by callers