Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/HazyResearch/butterfly
/ functions
Functions
1,242 in github.com/HazyResearch/butterfly
⨍
Functions
1,242
◇
Types & classes
260
Method
log_epoch_metric
(self, name, value)
cnn/imagenet/logger.py:282
Method
log_iteration_metric
(self, name, value)
cnn/imagenet/logger.py:255
Method
log_iteration_metric
(self, name, value)
cnn/imagenet/logger.py:289
Method
log_run_tag
(self, name, val)
cnn/imagenet/logger.py:183
Method
log_run_tag
(self, name, val)
cnn/imagenet/logger.py:229
Method
log_run_tag
(self, name, val)
cnn/imagenet/logger.py:273
Method
loss
(logits, y, len_batch=None)
convolution/tasks.py:18
Method
loss
(logits, y, len_batch=None)
convolution/tasks.py:34
Function
lr_exponential_policy
(base_lr, warmup_length, epochs, final_multiplier=0.001, logger=None)
cnn/imagenet/training.py:182
Method
matrix
(self, temperature=1.0)
learning_transforms/butterfly_old.py:127
Method
mean_perm
(self)
cnn/models/presnet.py:302
Method
mean_perm
(self)
cnn/models/presnet.py:315
Method
mean_perm
(self)
cnn/models/presnet.py:332
Method
metrics
(logits, y, len_batch=None)
convolution/tasks.py:23
Method
metrics
(logits, y, len_batch=None)
convolution/tasks.py:38
Method
metrics_epoch
(outs, y, len_batch=None)
convolution/tasks.py:12
Method
metrics_epoch
(logits, y, len_batch=None)
convolution/tasks.py:27
Method
metrics_epoch
(logits, y, len_batch=None)
convolution/tasks.py:42
Method
mle_perm
(self)
cnn/models/presnet.py:317
Method
mle_perm
(self)
cnn/models/presnet.py:334
Function
mse
perm is matrix, true is list
cnn/permutation_utils.py:47
Function
mult2x2
butterfly/factor_multiply/factor_multiply.cpp:70
Function
my_gumbel_sinkhorn
Random doubly-stochastic matrices via gumbel noise. In the zero-temperature limit sinkhorn(log_alpha/temp) approaches a permutation matrix. T
gumbel-sinkhorn/my_sinkhorn_ops.py:77
Function
my_invert_listperm
Inverts a batch of permutations. Args: listperm: a 2D integer tensor of permutations listperm of shape = [batch_size, n_objects] so tha
gumbel-sinkhorn/my_sinkhorn_ops.py:290
Function
my_kendall_tau
Wraps scipy.stats kendalltau function. Args: batch_perm1: A 2D tensor (a batch of matrices) with shape = [batch_size, N] batch_perm2:
gumbel-sinkhorn/my_sinkhorn_ops.py:335
Function
my_matching
Solves a matching problem for a batch of matrices. This is a wrapper for the scipy.optimize.linear_sum_assignment function. It solves the optimiz
gumbel-sinkhorn/my_sinkhorn_ops.py:303
Function
my_permute_batch_split
Scrambles a batch of objects according to permutations. It takes a 3D tensor [batch_size, n_objects, object_size] and permutes items in axis=
gumbel-sinkhorn/my_sinkhorn_ops.py:221
Function
my_sample_permutations
Samples a batch permutations from the uniform distribution. Returns a sample of n_permutations permutations of n_objects indices. Permutation
gumbel-sinkhorn/my_sinkhorn_ops.py:197
Function
my_sample_uniform_and_order
Samples uniform random numbers, return sorted lists and the indices of their original values Returns a 2-D tensor of n_lists lists of n_numbers s
gumbel-sinkhorn/my_sinkhorn_ops.py:148
Function
nll
perm: (n, n) or (s, n, n) true: (n)
cnn/permutation_utils.py:51
Method
num_classes
(self)
convolution/datamodules/cifar.py:34
Method
on_epoch_end
(self, trainer, pl_module)
convolution/ray_runner.py:82
Method
on_test_epoch_end
(self, trainer, pl_module)
convolution/ray_runner.py:95
Function
perm2butterfly_slow
Convert a permutation to a Butterfly that performs the same permutation. This implementation is slower but follows the proofs in Appendix G m
torch_butterfly/permutation.py:304
Function
permutation_mult_factors
Multiply by permutation factors, parameterized by the probabilities. Parameters: prob: (nsteps, 3), where prob[:, 0] is the probability of
butterfly/permutation_multiply.py:129
Function
permutation_mult_single_factor
Multiply by a single permutation factor, parameterized by the probabilities. Parameters: prob: (3, ), where prob[0] is the probability of
butterfly/permutation_multiply.py:202
Function
pl_train_with_tune
(cfg, pl_module_cls, checkpoint_dir=None)
convolution/ray_runner.py:101
Function
polish
Load model from checkpoint, then fix the order of the factor matrices (using the largest logits), and re-optimize using L-BFGS to find the nea
learning_transforms/learning_transforms.py:163
Function
polish
Load model from checkpoint, then fix the order of the factor matrices (using the largest logits), and re-optimize using L-BFGS to find the nea
learning_transforms/learning_fft.py:551
Function
polish_dct_complex
Load model from checkpoint, then fix the order of the factor matrices (using the largest logits), and re-optimize using L-BFGS to find the nea
learning_transforms/learning_legendre.py:152
Function
polish_dct_complex
Load model from checkpoint, then fix the order of the factor matrices (using the largest logits), and re-optimize using L-BFGS to find the nea
learning_transforms/learning_vandermonde.py:150
Function
polish_dct_complex
Load model from checkpoint, then fix the order of the factor matrices (using the largest logits), and re-optimize using L-BFGS to find the nea
learning_transforms/learning_circulant.py:151
Function
polish_dct_real
Load model from checkpoint, then fix the order of the factor matrices (using the largest logits), and re-optimize using L-BFGS to find the nea
learning_transforms/learning_legendre.py:123
Function
polish_dct_real
Load model from checkpoint, then fix the order of the factor matrices (using the largest logits), and re-optimize using L-BFGS to find the nea
learning_transforms/learning_vandermonde.py:121
Function
polish_dct_real
Load model from checkpoint, then fix the order of the factor matrices (using the largest logits), and re-optimize using L-BFGS to find the nea
learning_transforms/learning_circulant.py:122
Function
polish_fft
(trial)
learning_transforms/polish.py:55
Function
polish_fft
Load model from checkpoint, then fix the order of the factor matrices (using the largest logits), and re-optimize using L-BFGS to find the nea
learning_transforms/learning_fft.py:563
Function
polish_fft
Load model from checkpoint, then fix the order of the factor matrices (using the largest logits), and re-optimize using L-BFGS to find the nea
learning_transforms/old/learning_fft_old.py:581
Function
polish_fft_block2x2
Load model from checkpoint, then fix the order of the factor matrices (using the largest logits), and re-optimize using L-BFGS to find the nea
learning_transforms/old/learning_fft_old.py:666
Function
polish_fft_blockperm
Load model from checkpoint, then fix the order of the factor matrices (using the largest logits), and re-optimize using L-BFGS to find the nea
learning_transforms/old/learning_fft_old.py:690
Function
polish_fft_blockperm_transpose
Load model from checkpoint, then fix the order of the factor matrices (using the largest logits), and re-optimize using L-BFGS to find the nea
learning_transforms/old/learning_fft_old.py:715
Function
polish_fft_learn_perm
Load model from checkpoint, then fix the order of the factor matrices (using the largest logits), and re-optimize using L-BFGS to find the nea
learning_transforms/learning_fft.py:592
Function
polish_fft_learn_perm
Load model from checkpoint, then fix the order of the factor matrices (using the largest logits), and re-optimize using L-BFGS to find the nea
learning_transforms/old/learning_fft_old.py:610
Function
polish_hadamard
Load model from checkpoint, then fix the order of the factor matrices (using the largest logits), and re-optimize using L-BFGS to find the nea
learning_transforms/learning_hadamard.py:80
Function
polish_hadamard
(trial)
learning_transforms/polish.py:26
Function
polish_ops
Load model from checkpoint, and re-optimize using L-BFGS to find the nearest local optimum.
learning_transforms/learning_ops.py:58
Method
post_process
(self, input, output, out_size=None)
torch_butterfly/butterfly.py:381
Method
post_process
(self, input, output)
butterfly/butterfly.py:371
Method
pre_process
(self, input)
torch_butterfly/butterfly.py:371
Method
pre_process
(self, input)
butterfly/butterfly.py:361
Function
print_m256
butterfly/factor_multiply/factor_multiply.cpp:82
Function
profile_butterfly_mult
()
learning_transforms/profile.py:10
Function
proj
(m)
learning_transforms/learning_transforms.py:178
Function
randn_factorization_softmax_no_perm
(argv)
learning_transforms/learning_fft.py:309
Function
randn_factorization_softmax_no_perm
(argv)
learning_transforms/old/learning_fft_old.py:333
Method
record
(self, val, n = 1)
cnn/imagenet/logger.py:13
Method
record
(self, val, n = 1)
cnn/imagenet/logger.py:79
Function
reduce_tensor
(tensor)
cnn/imagenet/utils.py:58
Method
reset
(self)
cnn/imagenet/logger.py:75
Function
resnet110
()
cnn/models/resnet_original.py:136
Function
resnet1202
()
cnn/models/resnet_original.py:140
Function
resnet18
(num_structured_layers=0, structure_type='B', nblocks=1, param='regular')
cnn/models/resnet_imagenet.py:265
Function
resnet20original
()
cnn/models/resnet_original.py:120
Function
resnet32
()
cnn/models/resnet_original.py:124
Function
resnet44
()
cnn/models/resnet_original.py:128
Function
resnet56
()
cnn/models/resnet_original.py:132
Function
run
(result_dir, nmaxepochs, nthreads)
learning_transforms/learning_hadamard.py:171
Function
run
(result_dir, nmaxepochs, nthreads)
learning_transforms/learning_legendre.py:274
Function
run
(result_dir, nmaxepochs, nthreads)
learning_transforms/learning_vandermonde.py:272
Function
run
(result_dir, nmaxepochs, nthreads)
learning_transforms/learning_ops.py:131
Function
run
(model, target, size, result_dir, nmaxepochs, nthreads, cuda, b)
learning_transforms/learning_transforms.py:254
Function
run
(result_dir, nmaxepochs, nthreads)
learning_transforms/learning_fft.py:796
Function
run
(result_dir, nmaxepochs, nthreads)
learning_transforms/learning_circulant.py:273
Function
run
(result_dir, nmaxepochs, nthreads)
learning_transforms/old/learning_fft_old.py:932
Function
run
(model, result_dir, nmaxepochs, grace_period)
cnn/distill_experiment.py:219
Function
run
(model_args, objective, teacher_model, result_dir, nmaxepochs, grace_period)
cnn/distill_cov_experiment.py:250
Function
run
(model, args, result_dir, nmaxepochs, use_hyperband, grace_period)
cnn/cifar_experiment.py:254
Function
run
(model, result_dir, nmaxepochs, unsupervised)
cnn/permuted_experiment.py:400
Function
run
(model, encoder, decoder, result_dir)
transformer/dynamic_conv_experiment.py:216
Method
sample_perm
(self)
cnn/models/presnet.py:319
Method
sample_perm
(self)
cnn/models/presnet.py:336
Function
save_checkpoint
(state, is_best, filename='checkpoint.pth.tar', checkpoint_dir='./', backup_filename=None)
cnn/imagenet/utils.py:14
Method
setUp
(self)
convolution/models/test_kops.py:11
Method
setUp
(self)
learning_transforms/test_factor_multiply.py:22
Method
setUp
(self)
tests/test_combine.py:12
Method
setUp
(self)
tests/test_butterfly_base4.py:15
Method
setUp
(self)
tests/test_permutation.py:16
Method
setUp
(self)
tests/test_special.py:20
Method
setUp
(self)
tests/test_complex_utils.py:13
Method
setUp
(self)
tests/test_multiply_base4.py:17
← previous
next →
1,001–1,100 of 1,242, ranked by callers