Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NUS-HPC-AI-Lab/InfoBatch
/ functions
Functions
105 in github.com/NUS-HPC-AI-Lab/InfoBatch
⨍
Functions
105
◇
Types & classes
16
↓ 14 callers
Function
safe_print
(*args, **kwargs)
examples/cifar_example.py:21
↓ 4 callers
Method
_make_layer
(self, block, planes, num_blocks, stride)
research/model.py:86
↓ 4 callers
Method
_make_layer
(self, block, planes, num_blocks, stride)
examples/model.py:86
↓ 4 callers
Method
reset
(self)
infobatch/infobatch.py:179
↓ 4 callers
Method
step
Performs a single optimization step. Arguments: closure (callable, optional): A closure that reevaluates the model
examples/lars.py:73
↓ 3 callers
Method
update
(self, values)
infobatch/infobatch.py:92
↓ 2 callers
Function
ResNet18
(num_classes=10)
research/model.py:117
↓ 2 callers
Function
ResNet18
(num_classes=10)
examples/model.py:117
↓ 2 callers
Function
ResNet50
(num_classes=10)
research/model.py:125
↓ 2 callers
Function
ResNet50
(num_classes=10)
examples/model.py:125
↓ 2 callers
Method
__init__
(self, block, num_blocks, num_classes=10)
research/model.py:72
↓ 2 callers
Method
__init__
(self, block, num_blocks, num_classes=10)
examples/model.py:72
↓ 2 callers
Method
get_pruned_count
(self)
infobatch/infobatch.py:156
↓ 2 callers
Method
reset
(self)
research/infobatch.py:79
↓ 2 callers
Method
reset_weights
(self)
research/infobatch.py:66
↓ 2 callers
Method
reset_weights
(self)
infobatch/infobatch.py:163
↓ 2 callers
Method
step
Performs a single optimization step. Arguments: closure (callable, optional): A closure that reevaluates the model
research/lars.py:73
↓ 2 callers
Method
total_save
(self)
research/infobatch.py:63
↓ 1 callers
Function
ResNet101
(num_classes=10)
research/model.py:129
↓ 1 callers
Function
ResNet101
(num_classes=10)
examples/model.py:129
↓ 1 callers
Method
__init__
(self, dataset: Dataset, num_epochs: int, prune_ratio: float = 0.5, delta: float = 0.875)
infobatch/infobatch.py:73
↓ 1 callers
Method
__setscore__
(self, indices, values)
research/infobatch.py:16
↓ 1 callers
Function
concat_all_gather
Performs all_gather operation on the provided tensors. *** Warning ***: torch.distributed.all_gather has no gradient.
infobatch/infobatch.py:45
↓ 1 callers
Function
destroy_ddp
()
examples/cifar_example.py:30
↓ 1 callers
Function
get_bias_parameters
(module, exclude_func=None)
research/lars.py:148
↓ 1 callers
Function
get_bias_parameters
(module, exclude_func=None)
examples/lars.py:148
↓ 1 callers
Function
get_common_parameters
(module, exclude_func=None)
research/lars.py:165
↓ 1 callers
Function
get_common_parameters
(module, exclude_func=None)
examples/lars.py:165
↓ 1 callers
Function
get_norm_bias_parameters
(module)
research/lars.py:158
↓ 1 callers
Function
get_norm_bias_parameters
(module)
examples/lars.py:158
↓ 1 callers
Function
get_norm_parameters
(module)
research/lars.py:144
↓ 1 callers
Function
get_norm_parameters
(module)
examples/lars.py:144
↓ 1 callers
Function
get_parameters_from_cls
(module, cls_)
research/lars.py:132
↓ 1 callers
Function
get_parameters_from_cls
(module, cls_)
examples/lars.py:132
↓ 1 callers
Method
no_prune
(self)
research/infobatch.py:49
↓ 1 callers
Method
no_prune
(self)
infobatch/infobatch.py:145
↓ 1 callers
Method
prune
(self)
research/infobatch.py:27
↓ 1 callers
Method
prune
(self)
infobatch/infobatch.py:119
↓ 1 callers
Method
pruning_sampler
(self)
research/infobatch.py:46
↓ 1 callers
Method
set_active_indices
(self, cur_batch_indices: torch.Tensor)
infobatch/infobatch.py:89
↓ 1 callers
Function
setup_ddp
()
examples/cifar_example.py:25
↓ 1 callers
Function
test
(epoch)
research/cifar_example.py:145
↓ 1 callers
Function
test
(epoch)
examples/cifar_example.py:227
↓ 1 callers
Function
train
(epoch)
research/cifar_example.py:116
↓ 1 callers
Function
train_info_batch
(epoch)
examples/cifar_example.py:172
↓ 1 callers
Function
train_normal
(epoch)
examples/cifar_example.py:201
Function
ResNet152
()
research/model.py:133
Function
ResNet152
()
examples/model.py:133
Function
ResNet34
()
research/model.py:121
Function
ResNet34
()
examples/model.py:121
Method
__getattr__
(self, name)
infobatch/infobatch.py:85
Method
__getitem__
(self, index)
research/infobatch.py:22
Method
__getitem__
(self, index)
infobatch/infobatch.py:114
Method
__getitem__
(self, idx)
infobatch/infobatch.py:176
Method
__getitem__
Gets element of the dataset. Args: index: index of the element in the dataset Returns: Single
infobatch/infobatch.py:227
Method
__init__
( self, params: Iterable[torch.nn.Parameter], lr=1e-3, momentu
research/lars.py:44
Method
__init__
(self, params, lr=1e-3, betas=(0.9, 0.999), eps=1e-6, weight_decay=0, adam=False)
research/lamb.py:45
Method
__init__
(self, dataset, ratio = 0.5, num_epoch=None, delta = 0.875)
research/infobatch.py:6
Method
__init__
(self, infobatch_dataset, num_epoch = math.inf, delta = 1)
research/infobatch.py:72
Method
__init__
(self, in_planes, planes, stride=1)
research/model.py:15
Method
__init__
(self, in_planes, planes, stride=1)
research/model.py:43
Method
__init__
(self, dataset: InfoBatch)
infobatch/infobatch.py:168
Method
__init__
(self, sampler: IBSampler)
infobatch/infobatch.py:216
Method
__init__
(self, dataset: IBSampler, num_replicas: Optional[int] = None, rank: Optional[int] = None, sh
infobatch/infobatch.py:238
Method
__init__
( self, params: Iterable[torch.nn.Parameter], lr=1e-3, momentu
examples/lars.py:44
Method
__init__
(self, params, lr=1e-3, betas=(0.9, 0.999), eps=1e-6, weight_decay=0, adam=False)
examples/lamb.py:45
Method
__init__
(self, in_planes, planes, stride=1)
examples/model.py:15
Method
__init__
(self, in_planes, planes, stride=1)
examples/model.py:43
Method
__iter__
(self)
research/infobatch.py:102
Method
__iter__
(self)
infobatch/infobatch.py:198
Method
__iter__
Notes self.dataset is actually an instance of IBSampler rather than InfoBatch.
infobatch/infobatch.py:248
Method
__len__
(self)
research/infobatch.py:19
Method
__len__
(self)
research/infobatch.py:99
Method
__len__
(self)
infobatch/infobatch.py:111
Method
__len__
(self)
infobatch/infobatch.py:195
Method
__len__
(self)
infobatch/infobatch.py:224
Method
__next__
(self)
research/infobatch.py:91
Method
__next__
(self)
infobatch/infobatch.py:192
Method
create_emb
(self,x)
research/model.py:106
Method
create_emb
(self,x)
examples/model.py:106
Function
create_optimizer_lars
(model, lr, momentum, weight_decay, bn_bias_separately, epsilon)
research/lars.py:14
Function
create_optimizer_lars
(model, lr, momentum, weight_decay, bn_bias_separately, epsilon)
examples/lars.py:14
Method
forward
(self, x)
research/model.py:32
Method
forward
(self, x)
research/model.py:62
Method
forward
(self, x)
research/model.py:94
Method
forward
(self, x)
examples/model.py:32
Method
forward
(self, x)
examples/model.py:62
Method
forward
(self, x)
examples/model.py:94
Function
get_members_fn
(m)
research/lars.py:133
Function
get_members_fn
(m)
examples/lars.py:133
Method
get_weights
(self,indexes)
research/infobatch.py:60
Method
get_weights
(self, indexes)
infobatch/infobatch.py:153
Function
info_hack_indices
(self)
infobatch/infobatch.py:15
Method
mean_score
(self)
research/infobatch.py:54
Method
mean_score
(self)
infobatch/infobatch.py:150
Method
normal_sampler_no_prune
(self)
research/infobatch.py:57
Method
reset
(self, )
infobatch/infobatch.py:220
Method
sampler
(self)
infobatch/infobatch.py:139
Method
set_decay
(self,weight_decay)
research/lars.py:68
Method
set_decay
(self,weight_decay)
examples/lars.py:68
next →
1–100 of 105, ranked by callers