MCPcopy Create free account

hub / github.com/AtlasAnalyticsLab/AdaFisher / functions

Functions413 in github.com/AtlasAnalyticsLab/AdaFisher

Methodconv2d
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
Methodconv2d
: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
Methodconv2d
(g, layer, batch_averaged)
Analysis/optimizers/kfac_utils.py:154
Methodcreate_dir
(path: Path)
Image_Classification/src/train.py:249
Methodextra_repr
(self)
Image_Classification/src/models/focalnet.py:103
Methodextra_repr
(self)
Image_Classification/src/models/focalnet.py:197
Methodextra_repr
(self)
Image_Classification/src/models/focalnet.py:303
Methodflops
(self, N)
Image_Classification/src/models/focalnet.py:106
Methodflops
(self)
Image_Classification/src/models/focalnet.py:201
Methodflops
(self)
Image_Classification/src/models/focalnet.py:306
Methodflops
(self)
Image_Classification/src/models/focalnet.py:368
Methodforward
(self, input)
Image_Classification/src/models/densenet.py:85
Methodforward
(self, init_features)
Image_Classification/src/models/densenet.py:132
Methodforward
(self, x)
Image_Classification/src/models/densenet.py:215
Methodforward
(self, x)
Image_Classification/src/models/mobilenetv3.py:40
Methodforward
(self, x)
Image_Classification/src/models/mobilenetv3.py:53
Methodforward
(self, x)
Image_Classification/src/models/mobilenetv3.py:77
Methodforward
(self, x, expand=False)
Image_Classification/src/models/mobilenetv3.py:149
Methodforward
(self, x)
Image_Classification/src/models/mobilenetv3.py:295
Methodforward
(self, x)
Image_Classification/src/models/cct.py:102
Methodforward
(self, src, *args, **kwargs)
Image_Classification/src/models/cct.py:144
Methodforward
(self, x)
Image_Classification/src/models/cct.py:157
Methodforward
(self, x)
Image_Classification/src/models/cct.py:275
Methodforward
(self, x)
Image_Classification/src/models/cct.py:358
Methodforward
(self, x)
Image_Classification/src/models/swin.py:14
Methodforward
(self, x, **kwargs)
Image_Classification/src/models/swin.py:23
Methodforward
(self, x, **kwargs)
Image_Classification/src/models/swin.py:33
Methodforward
(self, x)
Image_Classification/src/models/swin.py:46
Methodforward
(self, x)
Image_Classification/src/models/swin.py:102
Methodforward
(self, x)
Image_Classification/src/models/swin.py:150
Methodforward
(self, x)
Image_Classification/src/models/swin.py:163
Methodforward
(self, x)
Image_Classification/src/models/swin.py:189
Methodforward
(self, img)
Image_Classification/src/models/swin.py:220
Methodforward
(self, x)
Image_Classification/src/models/resnet_cifar.py:35
Methodforward
(self, x)
Image_Classification/src/models/resnet_cifar.py:66
Methodforward
(self, x)
Image_Classification/src/models/resnet_cifar.py:99
Methodforward
(self, x)
Image_Classification/src/models/densenet_cifar.py:20
Methodforward
(self, x)
Image_Classification/src/models/densenet_cifar.py:35
Methodforward
(self, x)
Image_Classification/src/models/densenet_cifar.py:83
Methodforward
(self, x)
Image_Classification/src/models/focalnet.py:25
Methodforward
Args: x: input features with shape of (B, H, W, C)
Image_Classification/src/models/focalnet.py:68
Methodforward
(self, x)
Image_Classification/src/models/focalnet.py:180
Methodforward
(self, x, H, W)
Image_Classification/src/models/focalnet.py:288
Methodforward
(self, x)
Image_Classification/src/models/focalnet.py:358
Methodforward
(self, x)
Image_Classification/src/models/focalnet.py:519
Methodforward
(self, x)
Image_Classification/src/models/resnet.py:70
Methodforward
(self, x)
Image_Classification/src/models/resnet.py:115
Methodforward
(self, x)
Image_Classification/src/models/resnet.py:234
Methodforward
(self, x)
Analysis/models/resnet_cifar.py:34
Methodforward
(self, x)
Analysis/models/resnet_cifar.py:65
Methodforward
(self, x)
Analysis/models/resnet_cifar.py:98
Methodforward
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
Methodforward
(self, hidden_states)
Language_Model/GPT1.py:262
Methodforward
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
Methodforward
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
Methodforward_featuremaps
(self, x)
Image_Classification/src/models/focalnet.py:499
Methodget_last_lr
Return last computed learning rate by current scheduler.
optimizers/lr_scheduler.py:169
Methodget_lr
(self)
optimizers/lr_scheduler.py:301
Methodget_lr
(self)
optimizers/lr_scheduler.py:377
Methodget_lr
(self)
optimizers/lr_scheduler.py:420
Methodget_lr
(self)
optimizers/lr_scheduler.py:465
Methodget_lr
(self)
optimizers/lr_scheduler.py:495
Methodget_lr
(self)
optimizers/lr_scheduler.py:553
Methodget_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
Methodget_lr
(self)
optimizers/lr_scheduler.py:1276
Methodget_lr
(self)
optimizers/lr_scheduler.py:1362
Methodget_second_moments
(self)
optimizers/AdamW.py:126
Methodin_cooldown
(self)
optimizers/lr_scheduler.py:706
Methodinit_weight
(m)
Image_Classification/src/models/cct.py:213
Methodinit_weight
(m)
Image_Classification/src/models/cct.py:304
Methodlayernorm
Computes gradient covariance diagonal for LayerNorm. Args: s: Output gradients layer: LayerNorm layer
optimizers/AdaFisher.py:308
Methodlayernorm
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
Methodlinear
: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
Methodlinear
(g, layer, batch_averaged)
optimizers/kfac_utils.py:171
Methodlinear
Computes gradient covariance diagonal for Linear layer. Args: s: Output gradients layer: Linear layer
optimizers/AdaFisher.py:275
Methodlinear
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
Methodlinear
: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
Methodlinear
(g, layer, batch_averaged)
Analysis/optimizers/kfac_utils.py:171
Methodload_embeddings_from
(cls, filename)
Language_Model/utils/embeddings.py:69
Methodload_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
Methodload_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
Methodload_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
Methodload_state_dict
(self, state_dict)
optimizers/lr_scheduler.py:742
Methodno_weight_decay
(self)
Image_Classification/src/models/focalnet.py:492
Methodno_weight_decay_keywords
(self)
Image_Classification/src/models/focalnet.py:496
Methodnum_lines
(self)
Language_Model/utils/wikitext2.py:126
Methodnum_tokens
(self)
Language_Model/utils/wikitext2.py:130
Methodreset
(self)
Image_Classification/src/utils/early_stop.py:14
Functionresnext101_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
Functionresnext50_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
Methodstate_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
Methodstate_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
Methodstate_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
Methodstate_dict
(self)
optimizers/lr_scheduler.py:739
Methodstep
(self, closure=None)
optimizers/kfac.py:174
Methodstep
Performs a single optimization step. Arguments: closure (callable, optional): A closure that reevaluates the model
optimizers/AdamW.py:130
Methodstep
Performs a single optimization step across all parameter groups of the model. This method iterates over each parameter group, updatin
optimizers/AdaFisher.py:631
Methodstep
Performs a single optimization step across all parameter groups of the model. This method iterates over each parameter group, updatin
optimizers/AdaFisher.py:769
Methodstep
Performs a single optimization step. Arguments: gradsH: The gradient used to compute Hessian vector product. closure (
optimizers/AdaHessian.py:99
Methodstep
Performs a single optimization step. Arguments: closure (callable, optional): A closure that reevaluates the model
optimizers/sgd.py:261
← previousnext →301–400 of 413, ranked by callers