MCPcopy Create free account

hub / github.com/AtlasAnalyticsLab/AdaFisher / functions

Functions413 in github.com/AtlasAnalyticsLab/AdaFisher

↓ 1 callersMethod_prepare_model
(self)
optimizers/kfac.py:70
↓ 1 callersMethod_prepare_model
Registers hooks on supported layers to track activations and gradients. Warning: Avoid in-place operations (e.g., relu(i
optimizers/AdaFisher.py:433
↓ 1 callersMethod_prepare_model
(self)
Analysis/optimizers/kfac.py:70
↓ 1 callersMethod_prepare_model
Prepares the model for optimization by registering forward and backward hooks on supported modules. These hooks are crucial for captu
Analysis/optimizers/AdaFisher.py:194
↓ 1 callersMethod_reduce_lr
(self, epoch)
optimizers/lr_scheduler.py:695
↓ 1 callersMethod_reset
Resets num_bad_epochs counter and cooldown counter.
optimizers/lr_scheduler.py:663
↓ 1 callersMethod_step
(self, closure)
optimizers/kfac.py:149
↓ 1 callersMethod_step
(self, closure)
Analysis/optimizers/kfac.py:149
↓ 1 callersMethod_update_inv
Do eigen decomposition for computing inverse of the ~ fisher. :param m: The layer :return: no returns.
optimizers/kfac.py:80
↓ 1 callersMethod_update_inv
Do eigen decomposition for computing inverse of the ~ fisher. :param m: The layer :return: no returns.
Analysis/optimizers/kfac.py:80
↓ 1 callersMethodaggregate_kronecker_factors
Aggregates Kronecker factors across multiple GPUs in a distributed setting. This function performs an all-reduce operation to sum th
optimizers/AdaFisher.py:479
↓ 1 callersMethodany_requires_grad
(self, input)
Image_Classification/src/models/densenet.py:69
↓ 1 callersMethodapply_attention
Apply the attention. This computes the output of the attention, for all the sequences and all the heads in the batch. For a single se
Language_Model/GPT1.py:77
↓ 1 callersFunctionargs
(sub_parser: _SubParsersAction)
Image_Classification/src/train.py:42
↓ 1 callersMethodcall_checkpoint_bottleneck
(self, input)
Image_Classification/src/models/densenet.py:77
↓ 1 callersFunctioncct
(num_classes: int)
Image_Classification/src/models/cct.py:363
↓ 1 callersFunctiondensenet161
r"""Densenet-161 model from `"Densely Connected Convolutional Networks" <https://arxiv.org/pdf/1608.06993.pdf>`_ Args: memory_efficie
Image_Classification/src/models/densenet.py:242
↓ 1 callersFunctiondensenet169
r"""Densenet-169 model from `"Densely Connected Convolutional Networks" <https://arxiv.org/pdf/1608.06993.pdf>`_ Args: memory_efficie
Image_Classification/src/models/densenet.py:253
↓ 1 callersFunctiondensenet201
r"""Densenet-201 model from `"Densely Connected Convolutional Networks" <https://arxiv.org/pdf/1608.06993.pdf>`_ Args: memory_efficie
Image_Classification/src/models/densenet.py:264
↓ 1 callersMethodepoch_iteration
(self, epoch: int)
Image_Classification/src/train.py:392
↓ 1 callersMethodforward
(self, x)
Image_Classification/src/models/cct.py:209
↓ 1 callersMethodforward_features
(self, x)
Image_Classification/src/models/focalnet.py:508
↓ 1 callersMethodget_attention_weights
Compute the attention weights. This computes the attention weights for all the sequences and all the heads in the batch. For a single
Language_Model/GPT1.py:24
↓ 1 callersFunctionget_data
( name: str, root: Path, mini_batch_size: int, num_workers: int, cutout: bool
Image_Classification/src/utils/data.py:57
↓ 1 callersMethodget_embeddings
Get the embeddings for some input sequence. This function computes the embedding vectors based on the input sequence (and the positio
Language_Model/GPT1.py:312
↓ 1 callersMethodget_lr
(self)
optimizers/lr_scheduler.py:1011
↓ 1 callersFunctionget_network
(name: str, num_classes: int, **kwargs)
Image_Classification/src/models/__init__.py:14
↓ 1 callersFunctionget_optimizer_scheduler
( optim_method: str, lr_scheduler: str, init_lr: float, net: Any, trai
optimizers/__init__.py:12
↓ 1 callersMethodget_pretrained_model
(self)
Image_Classification/src/train.py:177
↓ 1 callersFunctionget_relative_distances
(window_size)
Image_Classification/src/models/swin.py:66
↓ 1 callersMethodget_trace
compute the Hessian vector product with a random vector v, at the current gradient point, i.e., compute the gradient of <gradsH,v>.
optimizers/AdaHessian.py:43
↓ 1 callersMethodget_trace
compute the Hessian vector product with a random vector v, at the current gradient point, i.e., compute the gradient of <gradsH,v>.
Analysis/optimizers/AdaHessian.py:43
↓ 1 callersMethodis_better
(self, a, best)
optimizers/lr_scheduler.py:709
↓ 1 callersMethodload_config
(self, config_path: Path, data_path: Path)
Image_Classification/src/train.py:144
↓ 1 callersMethodload_embeddings_from
( cls, filename, num_heads=12, num_layers=4, learn_embeddings=False )
Language_Model/GPT1.py:405
↓ 1 callersFunctionmain
(args: APNamespace)
Image_Classification/src/train.py:520
↓ 1 callersFunctionmain
(args)
Language_Model/run_exp.py:95
↓ 1 callersMethodmerge_heads
Merge the head vectors. This function concatenates the head vectors in a single vector. This function also transposes the `sequence_l
Language_Model/GPT1.py:160
↓ 1 callersFunctionmobilenetv3
(num_classes=10)
Image_Classification/src/models/mobilenetv3.py:328
↓ 1 callersMethodon_time_results
(self, results: dict, epoch: int)
Image_Classification/src/train.py:296
↓ 1 callersFunctionpair
(t)
Image_Classification/src/models/cct.py:18
↓ 1 callersFunctionparse_config
( config: Dict[str, Union[str, float, int]])
Image_Classification/src/utils/utils.py:23
↓ 1 callersMethodreset
(self, learning_rate: float)
Image_Classification/src/train.py:202
↓ 1 callersFunctionresnet152
r"""ResNet-152 model from `"Deep Residual Learning for Image Recognition" <https://arxiv.org/pdf/1512.03385.pdf>`_
Image_Classification/src/models/resnet.py:279
↓ 1 callersFunctionresnet18
r"""ResNet-18 model from `"Deep Residual Learning for Image Recognition" <https://arxiv.org/pdf/1512.03385.pdf>`_
Image_Classification/src/models/resnet.py:243
↓ 1 callersFunctionresnet34
r"""ResNet-34 model from `"Deep Residual Learning for Image Recognition" <https://arxiv.org/pdf/1512.03385.pdf>`_ Args: pretrained (b
Image_Classification/src/models/resnet.py:251
↓ 1 callersMethodrun_epochs
(self, trial: int, epochs: List[int])
Image_Classification/src/train.py:338
↓ 1 callersFunctionsave_logs
( args, train_losses, train_ppls, train_times, valid_losses, v
Language_Model/utils/data_utils.py:5
↓ 1 callersFunctionseed_experiment
Seed the pseudorandom number generator, for repeatability. Args: seed (int): random seed
Language_Model/utils/torch_utils.py:5
↓ 1 callersMethodsequence_length
(self, n_channels=3, height=224, width=224)
Image_Classification/src/models/cct.py:206
↓ 1 callersFunctionsetup_dirs
(args: APNamespace)
Image_Classification/src/train.py:498
↓ 1 callersFunctionsinusoidal_embedding
(n_channels, dim)
Image_Classification/src/models/cct.py:80
↓ 1 callersFunctionsmart_detect_inf
Replaces positive infinity in the tensor with 1. and negative infinity with 0.. Parameters: tensor (torch.Tensor): Input tensor that
optimizers/AdaFisher.py:13
↓ 1 callersMethodstep
(self, epoch=None)
optimizers/lr_scheduler.py:178
↓ 1 callersFunctionswin_b
(num_classes:int, hidden_dim=128, layers=(2, 2, 18, 2), heads=(4, 8, 16, 32), **kwargs)
Image_Classification/src/models/swin.py:239
↓ 1 callersFunctionswin_l
(num_classes:int, hidden_dim=192, layers=(2, 2, 18, 2), heads=(6, 12, 24, 48), **kwargs)
Image_Classification/src/models/swin.py:244
↓ 1 callersFunctionswin_s
(num_classes:int, hidden_dim=96, layers=(2, 2, 18, 2), heads=(3, 6, 12, 24), **kwargs)
Image_Classification/src/models/swin.py:234
↓ 1 callersFunctionswin_t
(num_classes:int, hidden_dim=96, layers=(2, 2, 6, 2), heads=(3, 6, 12, 24), **kwargs)
Image_Classification/src/models/swin.py:229
↓ 1 callersMethodtrack_gpu_memory_usage
()
Image_Classification/src/train.py:323
↓ 1 callersFunctiontrack_memory_gpu
(args, epoch)
Language_Model/utils/data_utils.py:51
↓ 1 callersFunctiontrain
(epoch, model, dataloader, optimizer, args, gm = None)
Language_Model/run_exp.py:23
↓ 1 callersMethodvalidate
(self)
Image_Classification/src/train.py:438
FunctionDenseNet121
(num_classes: int = 10)
Image_Classification/src/models/densenet_cifar.py:95
FunctionDenseNet161
(num_classes: int = 10)
Image_Classification/src/models/densenet_cifar.py:110
FunctionDenseNet169
(num_classes: int = 10)
Image_Classification/src/models/densenet_cifar.py:100
FunctionDenseNet201
(num_classes: int = 10)
Image_Classification/src/models/densenet_cifar.py:105
FunctionResNet101
(num_classes: int = 10)
Image_Classification/src/models/resnet_cifar.py:123
FunctionResNet101
(num_classes: int = 10)
Analysis/models/resnet_cifar.py:122
FunctionResNet152
(num_classes: int = 10)
Image_Classification/src/models/resnet_cifar.py:127
FunctionResNet152
(num_classes: int = 10)
Analysis/models/resnet_cifar.py:126
FunctionResNet18
(num_classes: int = 10)
Image_Classification/src/models/resnet_cifar.py:111
FunctionResNet18
(num_classes: int = 10)
Analysis/models/resnet_cifar.py:110
FunctionResNet34
(num_classes: int = 10)
Image_Classification/src/models/resnet_cifar.py:115
FunctionResNet34
(num_classes: int = 10)
Analysis/models/resnet_cifar.py:114
FunctionResNet50
(num_classes: int = 10)
Image_Classification/src/models/resnet_cifar.py:119
FunctionResNet50
(num_classes: int = 10)
Analysis/models/resnet_cifar.py:118
Method__call__
(cls, input, grad_output, layer)
optimizers/kfac_utils.py:43
Method__call__
(cls, g, layer, batch_averaged)
optimizers/kfac_utils.py:143
Method__call__
Delegates computation to layer-specific methods. Args: s: Output gradients layer: PyTorch layer
optimizers/AdaFisher.py:233
Method__call__
Args: img (Tensor): Tensor image of size (C, H, W). Returns: Tensor: Image with n_holes of dimension length x
Image_Classification/src/utils/data.py:26
Method__call__
@monitor: value to monitor for early stopping (e.g. train_loss, test_loss, ...) @mode: specify whether you want to
Image_Classification/src/utils/early_stop.py:18
Method__call__
Directly calls the instance to compute the diagonal and the full matrix of the covariance matrix by delegating to layer-specific met
Analysis/optimizers/AdaFisher_utils.py:106
Method__call__
(cls, input, grad_output, layer)
Analysis/optimizers/kfac_utils.py:43
Method__call__
(cls, g, layer, batch_averaged)
Analysis/optimizers/kfac_utils.py:143
Method__enter__
(self)
optimizers/lr_scheduler.py:203
Method__enter__
(self)
optimizers/lr_scheduler.py:1074
Method__exit__
(self, type, value, traceback)
optimizers/lr_scheduler.py:207
Method__exit__
(self, type, value, traceback)
optimizers/lr_scheduler.py:1078
Method__getitem__
(self, index)
Language_Model/utils/wikitext2.py:105
Method__init__
(self, model, lr=0.001, momentum=0.9, stat
optimizers/kfac.py:9
Method__init__
(self, params, lr=1e-3, betas=(0.9, 0.999), eps=1e-8, weight_decay=0, amsgrad=False)
optimizers/AdamW.py:102
Method__init__
(self, model: Module, lr: float = 1e-3, beta: float = 0.9,
optimizers/AdaFisher.py:358
Method__init__
(self, model: Module, lr: float = 1e-3, beta: float = 0.9,
optimizers/AdaFisher.py:718
Method__init__
(self, params, lr=0.15, betas=(0.9, 0.999), eps=1e-4, weight_decay=0, hessian_power=1, single
optimizers/AdaHessian.py:22
Method__init__
(self, params, lr=required, momentum=0, dampening=0, weight_decay=0, nesterov=False)
optimizers/sgd.py:239
Method__init__
(self, params, lr=1e-3, betas=(0.9, 0.999), eps=1e-8, weight_decay=0, amsgrad=False)
optimizers/Adam.py:102
Method__init__
(self, optimizer, last_epoch=-1)
optimizers/lr_scheduler.py:98
Method__init__
(self, o)
optimizers/lr_scheduler.py:200
Method__init__
(self, optimizer, lr_lambda, last_epoch=-1)
optimizers/lr_scheduler.py:250
Method__init__
(self, optimizer, lr_lambda, last_epoch=-1)
optimizers/lr_scheduler.py:330
← previousnext →101–200 of 413, ranked by callers