MCPcopy Create free account

hub / github.com/HazyResearch/butterfly / functions

Functions1,242 in github.com/HazyResearch/butterfly

↓ 1 callersFunctiondistillation_experiment
(model, model_args, optimizer, ntrials, result_dir, train_dir, workers, cuda, smoke_test, teacher_model,
cnn/distill_experiment.py:184
↓ 1 callersFunctiondistillation_experiment
(model_args, objective, optimizer, ntrials, result_dir, cuda, smoke_test, teacher_
cnn/distill_cov_experiment.py:211
↓ 1 callersFunctiondynamic_conv_experiment
(model, model_args, encoder, decoder, structure_lr_multiplier, nmaxupdates, ntrial
transformer/dynamic_conv_experiment.py:176
↓ 1 callersMethodend_epoch
(self)
cnn/imagenet/logger.py:147
↓ 1 callersMethodend_iteration
(self, val=False)
cnn/imagenet/logger.py:119
↓ 1 callersMethodepoch_generator_wrapper
(self, gen)
cnn/imagenet/logger.py:165
↓ 1 callersFunctionfft2d
Construct an nn.Module based on Butterfly that exactly performs the 2D FFT. Parameters: n1: size of the FFT on the last input dimension.
torch_butterfly/special.py:487
↓ 1 callersFunctionfft_experiment_block
(trainable, size, ntrials, nsteps, nepochsvalid, result_dir, nthreads, smoke_test)
learning_transforms/learning_fft.py:770
↓ 1 callersFunctionfft_experiment_blockperm_transpose
(size, ntrials, nsteps, result_dir, nthreads, smoke_test)
learning_transforms/old/learning_fft_old.py:908
↓ 1 callersMethodfileno
(self)
convolution/tee.py:97
↓ 1 callersFunctionfisher_exact
(twiddle, x, return_factor=False)
learning_transforms/fisher.py:114
↓ 1 callersFunctionfisher_numerical
Compute Fisher information matrix numerically, using per-sample gradient
learning_transforms/fisher.py:103
↓ 1 callersMethodflush
(self)
convolution/tee.py:65
↓ 1 callersFunctionfn
(twiddle, input)
torch_butterfly/input_padding_benchmark.py:22
↓ 1 callersMethodforward
(self, input)
convolution/train.py:32
↓ 1 callersMethodforward
(self)
learning_transforms/training.py:61
↓ 1 callersMethodforward
Parameters: input: (..., size) if real or (..., size, 2) if complex Return: output: (..., size) if real or (.
learning_transforms/butterfly_old.py:187
↓ 1 callersMethodforward
(self, x)
cnn/shufflenet_imagenet.py:50
↓ 1 callersMethodforward
(self, x)
cnn/mobilenet_imagenet.py:82
↓ 1 callersMethodforward
(ctx, c, x)
cnn/models/circulant1x1conv.py:51
↓ 1 callersMethodforward
Parameters: input: (batch, c, h, w) if real or (batch, c, h, w, 2) if complex Return: output: (batch, nstack
cnn/models/butterfly_conv.py:58
↓ 1 callersMethodforward
Parameters: input: (batch, *, in_size) Return: output: (batch, *, out_size)
cnn/models/toeplitzlike1x1conv.py:127
↓ 1 callersMethodfreeze
(self)
learning_transforms/training.py:71
↓ 1 callersMethodgen_wrapper
(dalipipeline, num_classes, one_hot)
cnn/imagenet/dataloaders.py:104
↓ 1 callersMethodgenerate_perm
Generate (a batch of) permutations for training
cnn/models/presnet.py:451
↓ 1 callersFunctionget_extensions
()
setup.py:19
↓ 1 callersFunctionget_input_cov
(model, train_loader, layer_names, max_batches=None)
cnn/imagenet/training.py:406
↓ 1 callersMethodget_last
(self)
cnn/imagenet/logger.py:36
↓ 1 callersFunctionget_parser
()
cnn/imagenet_experiment.py:31
↓ 1 callersFunctionget_parser
()
cnn/imagenet_model_surgery.py:18
↓ 1 callersFunctionget_parser
()
cnn/teacher.py:30
↓ 1 callersFunctionget_parser
()
cnn/teacher_covariance.py:33
↓ 1 callersMethodget_stream
returns the original stream e.g. sys.stdout
convolution/tee.py:37
↓ 1 callersFunctionget_teacher_intermediates
(teacher_model, train_loader, layers_to_replace)
cnn/teacher.py:69
↓ 1 callersFunctionget_teacher_intermediates
(teacher_model, train_loader, layers_to_replace)
cnn/teacher_covariance.py:71
↓ 1 callersFunctionget_train_step
(model_and_loss, optimizer, fp16, use_amp = False, batch_size_multiplier = 1)
cnn/imagenet/training.py:198
↓ 1 callersMethodget_val
(self)
cnn/imagenet/logger.py:33
↓ 1 callersMethodget_val
(self)
cnn/imagenet/logger.py:56
↓ 1 callersFunctionget_val_step
(model_and_loss)
cnn/imagenet/training.py:294
↓ 1 callersFunctionhaar_matrix
(n, normalized=False)
learning_transforms/target_matrix.py:26
↓ 1 callersFunctionhadamard_experiment
(fixed_order, softmax_fn, size, ntrials, nsteps, result_dir, nthreads, smoke_test)
learning_transforms/learning_hadamard.py:142
↓ 1 callersFunctionhartley_matrix
Matrix corresponding to the discrete Hartley transform. https://en.wikipedia.org/wiki/Discrete_Hartley_transform
learning_transforms/target_matrix.py:46
↓ 1 callersFunctionhilbert_matrix
https://en.wikipedia.org/wiki/Hilbert_matrix
learning_transforms/target_matrix.py:56
↓ 1 callersFunctionhungarian
(x)
gumbel-sinkhorn/my_sinkhorn_ops.py:322
↓ 1 callersFunctionifft2d
Construct an nn.Module based on Butterfly that exactly performs the 2D iFFT. Parameters: n1: size of the iFFT on the last input dimension
torch_butterfly/special.py:542
↓ 1 callersFunctionimshow
(img, name)
cnn/visualize_perm.py:64
↓ 1 callersFunctioninv_soft_perms_flattened
(soft_perms_inf)
gumbel-sinkhorn/my_sorting_train.py:32
↓ 1 callersFunctionis_2x2_block_diag
Check that each of the 4 blocks of a matrix is diagonal (in other words, that the matrix is a butterfly factor). Assumes that the matrix is sq
torch_butterfly/permutation.py:121
↓ 1 callersFunctionis_butterfly_factor
Checks whether "mat" is in B_k.
torch_butterfly/permutation.py:133
↓ 1 callersFunctionkendalltau_batch
(x, y)
gumbel-sinkhorn/my_sinkhorn_ops.py:347
↓ 1 callersFunctionlegendre_transpose_mult_slow
Naive multiplication P^T v where P is the matrix of coefficients of Legendre polynomials. Parameters: v: (batch_size, n) Return:
learning_transforms/ops.py:160
↓ 1 callersFunctionlegendreeval_experiment_complex
(fixed_order, softmax_fn, size, ntrials, nsteps, result_dir, nthreads, smoke_test)
learning_transforms/learning_legendre.py:244
↓ 1 callersMethodload_model_state
(self, state)
cnn/imagenet/training.py:80
↓ 1 callersMethodlog_end_epoch
(self)
cnn/imagenet/logger.py:186
↓ 1 callersMethodlog_end_iteration
(self)
cnn/imagenet/logger.py:189
↓ 1 callersMethodloss
(outs, y, len_batch=None)
convolution/tasks.py:48
↓ 1 callersFunctionmain
(cfg: OmegaConf)
convolution/train.py:68
↓ 1 callersFunctionmain
()
learning_transforms/hstack_diag.py:116
↓ 1 callersFunctionmain
()
learning_transforms/butterfly_old.py:780
↓ 1 callersFunctionmain
()
cnn/imagenet_experiment.py:128
↓ 1 callersFunctionmain
(args)
cnn/imagenet_main.py:161
↓ 1 callersFunctionmain
()
cnn/teacher.py:158
↓ 1 callersFunctionmain
()
cnn/imagenet_amp.py:116
↓ 1 callersFunctionmain
()
cnn/teacher_covariance.py:126
↓ 1 callersFunctionmain
(args)
cnn/imagenet_finetune.py:154
↓ 1 callersFunctionmatperm2listperm
Converts permutation matrix to its enumeration (list) form. Args: matperm: (..., n, n) Returns: listperm: (..., n) - listperm[t,i] i
cnn/permutation_utils.py:23
↓ 1 callersMethodmean_perm
(self)
cnn/models/presnet.py:489
↓ 1 callersFunctionmixup
(alpha, num_classes, data, target)
cnn/imagenet/mixup.py:6
↓ 1 callersMethodmixup_loader
(self, loader)
cnn/imagenet/mixup.py:24
↓ 1 callersMethodmle_perm
(self)
cnn/models/presnet.py:497
↓ 1 callersFunctionmodular_balance
Returns the sequence of permutations to transform permutation vector v into a modular-balanced matrix, as well as the resultant modular-b
torch_butterfly/permutation.py:231
↓ 1 callersFunctionmodular_balanced_to_butterfly_factor
Returns a sequence of butterfly factors that, when multiplied together, create L. Assumptions: L is a modular-balanced permutation matrix. Dir
torch_butterfly/permutation.py:272
↓ 1 callersFunctionmunch_to_dictconfig
(m)
convolution/utils.py:26
↓ 1 callersFunctionmunchconfig_to_tune_munchconfig
Convert config to one compatible with Ray Tune. Entry as list whose first element is "_grid" is converted to ray.tune.grid_search. "_sample" i
convolution/ray_runner.py:30
↓ 1 callersFunctionmy_listperm2matperm
Converts a batch of permutations to its matricial form. Args: listperm: 2D tensor of permutations of shape [batch_size, n_objects] so that
gumbel-sinkhorn/my_sinkhorn_ops.py:250
↓ 1 callersFunctionmy_matperm2listperm
Converts a batch of permutations to its enumeration (list) form. Args: matperm: a 3D tensor of permutations of shape = [batch_size, n_o
gumbel-sinkhorn/my_sinkhorn_ops.py:267
↓ 1 callersFunctionmy_sample_gumbel
Samples arbitrary-shaped standard gumbel variables. Args: shape: list of integers eps: float, for numerical stability Returns: A
gumbel-sinkhorn/my_sinkhorn_ops.py:17
↓ 1 callersFunctionmy_sinkhorn
Performs incomplete Sinkhorn normalization to log_alpha. By a theorem by Sinkhorn and Knopp [1], a sufficiently well-behaved matrix with pos
gumbel-sinkhorn/my_sinkhorn_ops.py:38
↓ 1 callersFunctionops_experiment
(size, ntrials, nsteps, result_dir, nthreads, smoke_test)
learning_transforms/learning_ops.py:107
↓ 1 callersFunctionops_transpose_mult_test
()
learning_transforms/ops.py:177
↓ 1 callersFunctionouter_twiddle_factors
Decompose the permutations v to get the right/right twiddle factor, and new permutations that only permute elements that are size//2 indices
torch_butterfly/permutation.py:358
↓ 1 callersFunctionperm2butterfly
Parameter: v: a permutation, stored as a vector, in left-multiplication format. (i.e., applying v to a vector x is equivalent
torch_butterfly/permutation.py:395
↓ 1 callersFunctionperm_mat_to_vec
Convert a permutation matrix to a permutation vector. Parameters: p: a matrix storing the permutation. left: whether it's in left-
torch_butterfly/permutation.py:111
↓ 1 callersMethodpolish
(self, nmaxsteps=50, patience=5, threshold=1e-8, save_to_self_model=False)
cnn/distill_cov_experiment.py:133
↓ 1 callersFunctionpolished_loss_fft_learn_perm
(trainable)
learning_transforms/learning_fft.py:623
↓ 1 callersFunctionpolished_loss_fft_learn_perm
(trainable)
learning_transforms/old/learning_fft_old.py:641
↓ 1 callersMethodpre_process
(self, input)
butterfly/butterfly.py:261
↓ 1 callersMethodprefetched_loader
(loader, num_classes, fp16, one_hot)
cnn/imagenet/dataloaders.py:191
↓ 1 callersFunctionproject_simplex
Project a vector v onto the simplex. That is, return argmin_w ||w - v||^2 where w >= 0 elementwise and sum(w) = z. Parameters: v: Tens
learning_transforms/sparsemax.py:15
↓ 1 callersFunctionray_train
(cfg, pl_module_cls)
convolution/ray_runner.py:114
↓ 1 callersFunctionreal_to_complex_strides
butterfly/factor_multiply/factor_multiply.cpp:1694
↓ 1 callersMethodrecord
(self, val, n = 1)
cnn/imagenet/logger.py:51
↓ 1 callersMethodreset
(self)
cnn/imagenet_experiment.py:403
↓ 1 callersMethodreset
(self)
cnn/imagenet_amp.py:422
↓ 1 callersMethodreset
(self)
cnn/teacher_covariance.py:172
↓ 1 callersMethodreset
(self)
cnn/train_utils.py:27
↓ 1 callersMethodreset
(self)
cnn/imagenet/logger.py:10
↓ 1 callersMethodreset
(self)
cnn/imagenet/logger.py:46
↓ 1 callersMethodreset_parameters
Initialize bias the same way as torch.nn.Linear.
torch_butterfly/butterfly.py:246
↓ 1 callersMethodreset_parameters
(self)
torch_butterfly/complex_utils.py:166
← previousnext →301–400 of 1,242, ranked by callers