Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Tencent/PocketFlow
/ types & classes
Types & classes
51 in github.com/Tencent/PocketFlow
⨍
Functions
751
◇
Types & classes
51
↓ 9 callers
Class
DistillationHelper
Helper for training with distillation loss. Other learners can use calc_loss() (remember to call initialize() first to make sure that the pre-t
learners/distillation_helper.py:33
↓ 4 callers
Class
Actor
Actor network.
rl_agents/ddpg/actor_critic.py:78
↓ 4 callers
Class
Cifar10Dataset
CIFAR-10 dataset.
datasets/cifar10_dataset.py:72
↓ 4 callers
Class
Ilsvrc12Dataset
ILSVRC-12 dataset.
datasets/ilsvrc12_dataset.py:95
↓ 4 callers
Class
PascalVocDataset
Pascal VOC dataset.
datasets/pascalvoc_dataset.py:165
↓ 2 callers
Class
Critic
Critic network.
rl_agents/ddpg/actor_critic.py:120
↓ 2 callers
Class
FMnistDataset
Fashion-MNIST dataset.
examples/fmnist_dataset.py:90
↓ 2 callers
Class
FullPrecLearner
Full-precision learner (no model compression applied).
learners/full_precision/learner.py:30
↓ 2 callers
Class
ModelHelper
Model helper for creating a ResNet model for the ILSVRC-12 dataset.
nets/resnet_at_ilsvrc12.py:96
↓ 2 callers
Class
NonUniformQuantization
Class of non-uniform quantization
learners/nonuniform_quantization/utils.py:29
↓ 2 callers
Class
ReLuLayer
utils/external/ssd_tensorflow/net/ssd_net.py:56
↓ 2 callers
Class
RunningMeanStd
Running averages of mean value & standard deviation.
rl_agents/ddpg/running_mean_std.py:25
↓ 2 callers
Class
UniformQuantization
Class of uniform quantization
learners/uniform_quantization/utils.py:30
↓ 1 callers
Class
AdaptiveNoiseSpec
Adaptive parameter noise's specifications. To enable, set <ddpg_noise_type> to 'param' and <ddpg_noise_prtl> to 'adapt'.
rl_agents/ddpg/noise.py:38
↓ 1 callers
Class
BitOptimizer
Currently only weight bits are inferred via RL. Activations later.
learners/nonuniform_quantization/bit_optimizer.py:53
↓ 1 callers
Class
BitOptimizer
Currently only weight bits are inferred via RL. Activations later.
learners/uniform_quantization/bit_optimizer.py:50
↓ 1 callers
Class
ChannelPrunedGpuLearner
Channel pruning learner with GPU-based optimization.
learners/channel_pruning_gpu/learner.py:108
↓ 1 callers
Class
ChannelPrunedLearner
Learner with channel/filter pruning
learners/channel_pruning/learner.py:82
↓ 1 callers
Class
ChannelPrunedRmtLearner
Channel pruning learner - remastered.
learners/channel_pruning_rmt/learner.py:113
↓ 1 callers
Class
ChannelPruner
The Channel Prunner
learners/channel_pruning/channel_pruner.py:52
↓ 1 callers
Class
DisChnPrunedLearner
Discrimination-aware channel pruning learner.
learners/discr_channel_pruning/learner.py:99
↓ 1 callers
Class
Env
Environment for the Move-to-target problem. The reward for moving from <x_curr> to <x_next> is defined as: reward := Dist(x_curr, target) - Dis
rl_agents/unit_tests/move_to_target.py:34
↓ 1 callers
Class
ImageCoder
Helper class that provides TensorFlow image coding utilities.
utils/external/ssd_tensorflow/dataset/convert_tfrecords.py:138
↓ 1 callers
Class
Model
The model wraper make it easier to do some operation on a tensorflow model
learners/channel_pruning/model_wrapper.py:31
↓ 1 callers
Class
ModelHelper
Model helper for creating a MobileNet model for the ILSVRC-12 dataset.
nets/mobilenet_at_ilsvrc12.py:69
↓ 1 callers
Class
ModelHelper
Model helper for creating a VGG model for the VOC dataset.
nets/faster_rcnn_at_pascalvoc.py:468
↓ 1 callers
Class
ModelHelper
Model helper for creating a LeNet-like model for the CIFAR-10 dataset.
nets/lenet_at_cifar10.py:70
↓ 1 callers
Class
ModelHelper
Model helper for creating a VGG model for the VOC dataset.
nets/vgg_at_pascalvoc.py:413
↓ 1 callers
Class
ModelHelper
Model helper for creating a ResNet model for the CIFAR-10 dataset.
nets/resnet_at_cifar10.py:68
↓ 1 callers
Class
ModelHelper
Model helper for creating a ConvNet model for the Fashion-MNIST dataset.
examples/convnet_at_fmnist.py:69
↓ 1 callers
Class
NoOpScope
No-op context manager.
utils/external/mobilenet.py:117
↓ 1 callers
Class
NonUniformQuantLearner
Nonuniform quantization for weights and activations
learners/nonuniform_quantization/learner.py:76
↓ 1 callers
Class
PROptimizer
Pruning ratio optimizer for the weight sparsification learner.
learners/weight_sparsification/pr_optimizer.py:96
↓ 1 callers
Class
RLHelper
Reinforcement learning helper for the weight sparsification learner.
learners/weight_sparsification/rl_helper.py:24
↓ 1 callers
Class
RLHelper
The Helper Class for the DDPG algorithm. Making sure the states and actions satisfy the condition of constraints given the total number bits.
learners/nonuniform_quantization/rl_helper.py:25
↓ 1 callers
Class
RLHelper
The Helper Class for the DDPG algorithm. Making sure the states and actions satisfy the condition of constraints given the total number bits.
learners/uniform_quantization/rl_helper.py:26
↓ 1 callers
Class
ReplayBuffer
Replay buffer for storing state-action-reward transitions. Each transition consists of five components: 1. state: current state 2. action: acti
rl_agents/ddpg/replay_buffer.py:21
↓ 1 callers
Class
TimeDecayNoiseSpec
Time-decaying action / parameter noise's specifications. To enable, set <ddpg_noise_type> to 'action' / 'param' and <ddpg_noise_prtl> to 'tdecy'.
rl_agents/ddpg/noise.py:66
↓ 1 callers
Class
UniformQuantLearner
Uniform quantization for weights and activations
learners/uniform_quantization/learner.py:73
↓ 1 callers
Class
UniformQuantTFLearner
Uniform quantization learner with TensorFlow's quantization APIs.
learners/uniform_quantization_tf/learner.py:64
↓ 1 callers
Class
WeightSparseLearner
Weight sparsification learner.
learners/weight_sparsification/learner.py:67
Class
AbstractDataset
Abstract class for datasets.
datasets/abstract_dataset.py:35
Class
AbstractLearner
Abstract class for learners. A learner should take a ModelHelper object as input, which includes the data input pipeline and model definition,
learners/abstract_learner.py:41
Class
AbstractModelHelper
Abstract class for model helpers. A model helper should define the following function interface: 1. Data input pipeline for training and evalua
nets/abstract_model_helper.py:22
Class
Agent
DDPG (Deep Deterministic Policy Gradient) agent.
rl_agents/ddpg/agent.py:119
Class
AnchorCreator
utils/external/ssd_tensorflow/utility/anchor_manipulator.py:258
Class
AnchorEncoder
utils/external/ssd_tensorflow/utility/anchor_manipulator.py:110
Class
Model
Base class for building the Resnet Model.
utils/external/resnet_model.py:358
Class
Model
Abstract model for actor & critic networks.
rl_agents/ddpg/actor_critic.py:48
Class
MultiGpuWrapper
Wrapper for multi-GPU training.
utils/multi_gpu_wrapper.py:30
Class
VGG16Backbone
utils/external/ssd_tensorflow/net/ssd_net.py:75