Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/AtlasAnalyticsLab/AdaFisher
/ functions
Functions
413 in github.com/AtlasAnalyticsLab/AdaFisher
⨍
Functions
413
◇
Types & classes
90
Method
conv2d
Computes the diagonal and the full matrix of the covariance matrix for activations from a Conv2d layer. Parameters: - h (Ten
Analysis/optimizers/AdaFisher_utils.py:132
Method
conv2d
:param input: batch_size * in_c * in_h * in_w :param grad_output: batch_size * out_c * h * w :param layer: nn.module batch_si
Analysis/optimizers/kfac_utils.py:69
Method
conv2d
(g, layer, batch_averaged)
Analysis/optimizers/kfac_utils.py:154
Method
create_dir
(path: Path)
Image_Classification/src/train.py:249
Method
extra_repr
(self)
Image_Classification/src/models/focalnet.py:103
Method
extra_repr
(self)
Image_Classification/src/models/focalnet.py:197
Method
extra_repr
(self)
Image_Classification/src/models/focalnet.py:303
Method
flops
(self, N)
Image_Classification/src/models/focalnet.py:106
Method
flops
(self)
Image_Classification/src/models/focalnet.py:201
Method
flops
(self)
Image_Classification/src/models/focalnet.py:306
Method
flops
(self)
Image_Classification/src/models/focalnet.py:368
Method
forward
(self, input)
Image_Classification/src/models/densenet.py:85
Method
forward
(self, init_features)
Image_Classification/src/models/densenet.py:132
Method
forward
(self, x)
Image_Classification/src/models/densenet.py:215
Method
forward
(self, x)
Image_Classification/src/models/mobilenetv3.py:40
Method
forward
(self, x)
Image_Classification/src/models/mobilenetv3.py:53
Method
forward
(self, x)
Image_Classification/src/models/mobilenetv3.py:77
Method
forward
(self, x, expand=False)
Image_Classification/src/models/mobilenetv3.py:149
Method
forward
(self, x)
Image_Classification/src/models/mobilenetv3.py:295
Method
forward
(self, x)
Image_Classification/src/models/cct.py:102
Method
forward
(self, src, *args, **kwargs)
Image_Classification/src/models/cct.py:144
Method
forward
(self, x)
Image_Classification/src/models/cct.py:157
Method
forward
(self, x)
Image_Classification/src/models/cct.py:275
Method
forward
(self, x)
Image_Classification/src/models/cct.py:358
Method
forward
(self, x)
Image_Classification/src/models/swin.py:14
Method
forward
(self, x, **kwargs)
Image_Classification/src/models/swin.py:23
Method
forward
(self, x, **kwargs)
Image_Classification/src/models/swin.py:33
Method
forward
(self, x)
Image_Classification/src/models/swin.py:46
Method
forward
(self, x)
Image_Classification/src/models/swin.py:102
Method
forward
(self, x)
Image_Classification/src/models/swin.py:150
Method
forward
(self, x)
Image_Classification/src/models/swin.py:163
Method
forward
(self, x)
Image_Classification/src/models/swin.py:189
Method
forward
(self, img)
Image_Classification/src/models/swin.py:220
Method
forward
(self, x)
Image_Classification/src/models/resnet_cifar.py:35
Method
forward
(self, x)
Image_Classification/src/models/resnet_cifar.py:66
Method
forward
(self, x)
Image_Classification/src/models/resnet_cifar.py:99
Method
forward
(self, x)
Image_Classification/src/models/densenet_cifar.py:20
Method
forward
(self, x)
Image_Classification/src/models/densenet_cifar.py:35
Method
forward
(self, x)
Image_Classification/src/models/densenet_cifar.py:83
Method
forward
(self, x)
Image_Classification/src/models/focalnet.py:25
Method
forward
Args: x: input features with shape of (B, H, W, C)
Image_Classification/src/models/focalnet.py:68
Method
forward
(self, x)
Image_Classification/src/models/focalnet.py:180
Method
forward
(self, x, H, W)
Image_Classification/src/models/focalnet.py:288
Method
forward
(self, x)
Image_Classification/src/models/focalnet.py:358
Method
forward
(self, x)
Image_Classification/src/models/focalnet.py:519
Method
forward
(self, x)
Image_Classification/src/models/resnet.py:70
Method
forward
(self, x)
Image_Classification/src/models/resnet.py:115
Method
forward
(self, x)
Image_Classification/src/models/resnet.py:234
Method
forward
(self, x)
Analysis/models/resnet_cifar.py:34
Method
forward
(self, x)
Analysis/models/resnet_cifar.py:65
Method
forward
(self, x)
Analysis/models/resnet_cifar.py:98
Method
forward
Multi-headed attention. This applies the multi-headed attention on the input tensors `hidden_states`. For a single sequence (for simp
Language_Model/GPT1.py:189
Method
forward
(self, hidden_states)
Language_Model/GPT1.py:262
Method
forward
Mini GPT-1. This is a small version of OpenAI's GPT-1 transformer for (causal) language modeling. This module returns for each positi
Language_Model/GPT1.py:339
Method
forward
Embedding module for GPT-1. This module combines token and positional embeddings, to return the embeddings from a sequence of input t
Language_Model/utils/embeddings.py:30
Method
forward_featuremaps
(self, x)
Image_Classification/src/models/focalnet.py:499
Method
get_last_lr
Return last computed learning rate by current scheduler.
optimizers/lr_scheduler.py:169
Method
get_lr
(self)
optimizers/lr_scheduler.py:301
Method
get_lr
(self)
optimizers/lr_scheduler.py:377
Method
get_lr
(self)
optimizers/lr_scheduler.py:420
Method
get_lr
(self)
optimizers/lr_scheduler.py:465
Method
get_lr
(self)
optimizers/lr_scheduler.py:495
Method
get_lr
(self)
optimizers/lr_scheduler.py:553
Method
get_lr
Calculates the learning rate at batch index. This function treats `self.last_epoch` as the last batch index. If `self.cycle_momentum`
optimizers/lr_scheduler.py:927
Method
get_lr
(self)
optimizers/lr_scheduler.py:1276
Method
get_lr
(self)
optimizers/lr_scheduler.py:1362
Method
get_second_moments
(self)
optimizers/AdamW.py:126
Method
in_cooldown
(self)
optimizers/lr_scheduler.py:706
Method
init_weight
(m)
Image_Classification/src/models/cct.py:213
Method
init_weight
(m)
Image_Classification/src/models/cct.py:304
Method
layernorm
Computes gradient covariance diagonal for LayerNorm. Args: s: Output gradients layer: LayerNorm layer
optimizers/AdaFisher.py:308
Method
layernorm
Computes the diagonal and the full matrix of the covariance matrix for activations from a LayerNorm layer. Parameters: - h (
Analysis/optimizers/AdaFisher_utils.py:194
Method
linear
:param input: batch_size * input_dim :param grad_output: batch_size * output_dim :param layer: [nn.module] output_dim * input
optimizers/kfac_utils.py:53
Method
linear
(g, layer, batch_averaged)
optimizers/kfac_utils.py:171
Method
linear
Computes gradient covariance diagonal for Linear layer. Args: s: Output gradients layer: Linear layer
optimizers/AdaFisher.py:275
Method
linear
Computes the diagonal and the full matrix of the covariance matrix for activations from a Linear layer. Parameters: - h (Ten
Analysis/optimizers/AdaFisher_utils.py:154
Method
linear
:param input: batch_size * input_dim :param grad_output: batch_size * output_dim :param layer: [nn.module] output_dim * input
Analysis/optimizers/kfac_utils.py:53
Method
linear
(g, layer, batch_averaged)
Analysis/optimizers/kfac_utils.py:171
Method
load_embeddings_from
(cls, filename)
Language_Model/utils/embeddings.py:69
Method
load_state_dict
Load the Kronecker factors from the dictionary state of the optimizer Args: state_dict (Dict[str:List[Tensor]]): Dictionnary cont
optimizers/AdaFisher.py:461
Method
load_state_dict
Loads the schedulers state. Arguments: state_dict (dict): scheduler state. Should be an object returned from a ca
optimizers/lr_scheduler.py:160
Method
load_state_dict
Loads the schedulers state. Arguments: state_dict (dict): scheduler state. Should be an object returned from a ca
optimizers/lr_scheduler.py:360
Method
load_state_dict
(self, state_dict)
optimizers/lr_scheduler.py:742
Method
no_weight_decay
(self)
Image_Classification/src/models/focalnet.py:492
Method
no_weight_decay_keywords
(self)
Image_Classification/src/models/focalnet.py:496
Method
num_lines
(self)
Language_Model/utils/wikitext2.py:126
Method
num_tokens
(self)
Language_Model/utils/wikitext2.py:130
Method
reset
(self)
Image_Classification/src/utils/early_stop.py:14
Function
resnext101_32x8d
r"""ResNeXt-101 32x8d model from `"Aggregated Residual Transformation for Deep Neural Networks" <https://arxiv.org/pdf/1611.05431.pdf>`_
Image_Classification/src/models/resnet.py:296
Function
resnext50_32x4d
r"""ResNeXt-50 32x4d model from `"Aggregated Residual Transformation for Deep Neural Networks" <https://arxiv.org/pdf/1611.05431.pdf>`_
Image_Classification/src/models/resnet.py:287
Method
state_dict
Save the Kronecker factors in the dictionary state of the optimizer Returns: Dict[str:List[Tensor]]: Dictionnary containing the s
optimizers/AdaFisher.py:448
Method
state_dict
Returns the state of the scheduler as a :class:`dict`. It contains an entry for every variable in self.__dict__ which is not the opti
optimizers/lr_scheduler.py:152
Method
state_dict
Returns the state of the scheduler as a :class:`dict`. It contains an entry for every variable in self.__dict__ which is not the opti
optimizers/lr_scheduler.py:343
Method
state_dict
(self)
optimizers/lr_scheduler.py:739
Method
step
(self, closure=None)
optimizers/kfac.py:174
Method
step
Performs a single optimization step. Arguments: closure (callable, optional): A closure that reevaluates the model
optimizers/AdamW.py:130
Method
step
Performs a single optimization step across all parameter groups of the model. This method iterates over each parameter group, updatin
optimizers/AdaFisher.py:631
Method
step
Performs a single optimization step across all parameter groups of the model. This method iterates over each parameter group, updatin
optimizers/AdaFisher.py:769
Method
step
Performs a single optimization step. Arguments: gradsH: The gradient used to compute Hessian vector product. closure (
optimizers/AdaHessian.py:99
Method
step
Performs a single optimization step. Arguments: closure (callable, optional): A closure that reevaluates the model
optimizers/sgd.py:261
← previous
next →
301–400 of 413, ranked by callers