MCPcopy Create free account

hub / github.com/DAMO-DI-ML/NeurIPS2022-FiLM / functions

Functions571 in github.com/DAMO-DI-ML/NeurIPS2022-FiLM

↓ 31 callersMethodabs
(self, x, y)
layers/utils.py:358
↓ 22 callersMethodcuda
(self)
layers/utils.py:313
↓ 15 callersMethod__init__
(self, ich = 1, k = 3, alpha = 2, c = 1, nCZ = 3, L = 0,
layers/mwt.py:699
↓ 15 callersMethodcpu
(self)
layers/utils.py:317
↓ 13 callersMethod__init__
(self, chunks, fn, along_dim = -1)
models/reformer_pytorch/reformer_pytorch.py:163
↓ 13 callersFunctiondefault
(val, default_val)
models/reformer_pytorch/reformer_pytorch.py:51
↓ 13 callersMethodstep
Step one time step as a recurrent model. Intended to be used during validation. u: (B H) state: (B H N) Returns: output (B H)
layers/S4.py:1083
↓ 9 callersMethodbackward
Backward function.
layers/mwt.py:396
↓ 9 callersFunctionsummarize
(name, x, x_, showdiff=False)
utils/unroll.py:540
↓ 8 callersMethod__init__
(self, attn_layers, conv_layers=None, norm_layer=None)
layers/Autoformer_EncDec.py:137
↓ 8 callersMethod__init__
(self, opt, mask)
models/pyraformer/Layers.py:381
↓ 8 callersMethodtransform
(self, data)
utils/tools.py:72
↓ 7 callersMethod__init__
(self, c_in, d_model, embed_type='fixed', freq='h', dropout=0.1)
layers/Embed.py:106
↓ 7 callersMethodregister
Utility method: register a tensor as a buffer or trainable parameter
layers/S4.py:879
↓ 7 callersFunctiontime_features
(dates, freq='h')
utils/timefeatures.py:133
↓ 6 callersMethod__init__
(self, c_in, d_model, dropout=0.1)
models/pyraformer/embed.py:82
↓ 6 callersMethodbackward
(ctx, grad_output)
models/pyraformer/hierarchical_mm_tvm.py:264
↓ 6 callersFunctionbatch_mult
Matrix mult A @ u with special case to save memory if u has additional batch dim The batch dimension is assumed to be the second dimension A
utils/unroll.py:57
↓ 6 callersFunctioninterleave
Interleave two tensors of same shape
utils/unroll.py:40
↓ 6 callersFunctionshift_up
(a, s=None, drop=True, dim=0)
utils/unroll.py:31
↓ 6 callersFunctionvariable_unroll
Bottom-up divide-and-conquer version of variable_unroll.
utils/unroll.py:241
↓ 6 callersFunctionvariable_unroll_sequential
Unroll with variable (in time/length) transitions A. A : ([L], ..., N, N) dimension L should exist iff variable is True u : (L, [B], ..., N)
utils/unroll.py:211
↓ 5 callersMethod_get_data
(self, flag)
exp/exp_AE.py:44
↓ 5 callersMethod_get_data
(self, flag)
exp/exp_main.py:63
↓ 5 callersMethod_prepare_tensors
Fix `stride()` information of input tensor. This addresses some inconsistency in stride information in PyTorch. For a tensor t, if t.size(0) =
models/pyraformer/hierarchical_mm_tvm.py:205
↓ 4 callersMethod__init__
(self, attn_layers, conv_layers=None, norm_layer=None)
layers/AE_EncDec.py:57
↓ 4 callersMethod__init__
(self, modes, width)
layers/FourierCorrelation.py:443
↓ 4 callersMethod__init__
(self, attn_layers, conv_layers=None, norm_layer=None)
layers/Transformer_EncDec.py:54
↓ 4 callersMethod_graph_mm
Calls the compiled function after checking the input format. This function is called in three different modes. t1 x t2 = r ==> t1 and t2 are n
models/pyraformer/hierarchical_mm_tvm.py:161
↓ 4 callersFunctionbatched_index_select
(values, indices)
layers/LSHAttention_reformer.py:24
↓ 4 callersFunctionbatched_index_select
(values, indices)
models/reformer_pytorch/reformer_pytorch.py:32
↓ 4 callersFunctionparallel_unroll_recursive
Bottom-up divide-and-conquer version of unroll.
utils/unroll.py:108
↓ 4 callersFunctionpsi
(psi1, psi2, i, inp)
layers/utils.py:133
↓ 4 callersMethodtrain
(self, setting)
exp/exp_AE.py:178
↓ 4 callersFunctionunroll
A : (..., N, N) u : (L, ..., N) output : x (..., N) x[i, ...] = A^{i} @ u[0, ...] + ... + A @ u[i-1, ...] + u[i, ...]
utils/unroll.py:89
↓ 4 callersFunctionvariable_unroll_general_sequential
Unroll with variable (in time/length) transitions A with general associative operation A : ([L], ..., N, N) dimension L should exist iff variabl
utils/unroll.py:286
↓ 3 callersFunctionActivation
(activation=None, dim=-1)
layers/S4.py:107
↓ 3 callersMethod__init__
(self, d=2, p=2, size_average=True, reduction=True)
layers/utils.py:347
↓ 3 callersMethod__init__
d_state: the dimension of the state, also denoted by N l_max: the maximum sequence length, also denoted by L if this is not
layers/S4.py:965
↓ 3 callersMethod__init__
(self, mask_flag=True, factor=5, scale=None, attention_dropout=0.1, output_attention=False)
layers/SelfAttention_Family.py:15
↓ 3 callersMethod__init__
(self, net)
models/reformer_pytorch/reversible.py:8
↓ 3 callersMethod_omega
Calculate (and cache) FFT nodes and their "unprocessed" them with the bilinear transform This should be called everytime the internal length
layers/S4.py:484
↓ 3 callersMethod_step_state_linear
Version of the step function that has time O(N) instead of O(N^2) per step, which takes advantage of the DPLR form and bilinear discretizatio
layers/S4.py:729
↓ 3 callersFunctionbitreversal_po2
(n)
utils/unroll.py:16
↓ 3 callersMethoddown_layer
(self, input_layer, out_layer, kernel, stride, depth)
layers/mwt.py:555
↓ 3 callersFunctiongenerate_data
(L, N, B=None, cuda=True)
utils/unroll.py:493
↓ 3 callersFunctionget_dynamic_modes
(seq_len, modes)
layers/FourierCorrelation.py:13
↓ 3 callersFunctionget_initializer
(name)
layers/mwt.py:247
↓ 3 callersMethodinverse_transform
(self, data)
data_provider/data_loader.py:371
↓ 3 callersMethodinverse_transform
(self, data)
data_provider/data_loader_mzq.py:379
↓ 3 callersFunctionvariable_unroll_general
Bottom-up divide-and-conquer version of variable_unroll. compose is an optional function that defines how to compose A without multiplying by a
utils/unroll.py:352
↓ 3 callersFunctionvariable_unroll_matrix
(A, u, s=None, variable=True, recurse_limit=16)
utils/unroll.py:402
↓ 3 callersMethodwavelet_transform
(self, x)
layers/mwt.py:879
↓ 2 callersFunctionMSE
(pred, true)
utils/metrics.py:18
↓ 2 callersMethod__init__
(self, configs, N=512, N2=32)
models/FiLM.py:155
↓ 2 callersMethod__init__
(self, opt)
models/pyraformer/graph_attention.py:185
↓ 2 callersMethod_get_lib_filename
(dtype: str, device: str)
models/pyraformer/hierarchical_mm_tvm.py:117
↓ 2 callersMethod_setup_C
Construct C~ from C double_length: current C is for length L, convert it to length 2L
layers/S4.py:465
↓ 2 callersMethod_setup_state
Construct dA and dB for discretized state equation
layers/S4.py:767
↓ 2 callersMethod_w
(self)
layers/S4.py:573
↓ 2 callersFunctionadjust_learning_rate
(optimizer, epoch, args)
utils/tools.py:8
↓ 2 callersMethodbackward
(ctx, dy)
models/reformer_pytorch/reversible.py:129
↓ 2 callersFunctiondata_provider
(args, flag)
data_provider/data_factory.py:14
↓ 2 callersFunctiondefault
(val, default_val)
layers/LSHAttention_reformer.py:43
↓ 2 callersFunctionembed_c2r
(A)
layers/S4.py:293
↓ 2 callersFunctionexpand_dim
(dim, k, t)
models/reformer_pytorch/reformer_pytorch.py:91
↓ 2 callersFunctionextract_and_set_enc_dec_kwargs
(kwargs)
models/reformer_pytorch/reformer_enc_dec.py:33
↓ 2 callersFunctionextract_enc_dec_kwargs
(kwargs)
models/reformer_pytorch/reformer_enc_dec.py:28
↓ 2 callersMethodforward_mult
Computes (I + delta A) u A: (n, n) u: (..., n) delta: (...) or scalar output: (..., n)
utils/op.py:77
↓ 2 callersFunctionget_filter
(base, k)
layers/utils.py:131
↓ 2 callersFunctionget_mask
Get the attention mask of PAM-Naive
models/pyraformer/Layers.py:12
↓ 2 callersFunctiongroup_by_key_prefix_and_remove_prefix
(prefix, d)
models/reformer_pytorch/reformer_enc_dec.py:23
↓ 2 callersFunctiongroup_dict_by_key
(cond, d)
models/reformer_pytorch/reformer_enc_dec.py:9
↓ 2 callersMethodinit_hidden
(self, BSIZE, LEN)
models/LSTM.py:39
↓ 2 callersMethodinverse_mult
Computes (I - d A)^-1 u
utils/op.py:88
↓ 2 callersFunctionmax_neg_value
(tensor)
models/reformer_pytorch/reformer_pytorch.py:57
↓ 2 callersFunctionmetric
(pred, true)
utils/metrics.py:34
↓ 2 callersFunctionparallel_unroll_iterative
Bottom-up divide-and-conquer version of unroll, implemented iteratively
utils/unroll.py:177
↓ 2 callersFunctionparallel_unroll_recursive_br
Same as parallel_unroll_recursive but uses bit reversal for locality.
utils/unroll.py:140
↓ 2 callersFunctionpower
Compute A^L and the scan sum_i A^i v_i A: (..., N, N) v: (..., N, L)
layers/S4.py:249
↓ 2 callersFunctionrefer_points
Gather features from PAM's pyramid sequences
models/pyraformer/Layers.py:50
↓ 2 callersFunctionrotate_every_two
(x)
models/reformer_pytorch/reformer_pytorch.py:659
↓ 2 callersMethodsave_checkpoint
(self, val_loss, model, path)
utils/tools.py:53
↓ 2 callersFunctionsort_key_val
(t1, t2, dim=-1)
layers/LSHAttention_reformer.py:19
↓ 2 callersFunctionsort_key_val
(t1, t2, dim=-1)
models/reformer_pytorch/reformer_pytorch.py:27
↓ 2 callersFunctionstring_begins_with
(prefix, str)
models/reformer_pytorch/reformer_enc_dec.py:17
↓ 2 callersMethodtest
(self, setting, test=0)
exp/exp_AE.py:312
↓ 2 callersFunctiontest_NSA
Test the time and CUDA memory consumption of normal self attention.
models/pyraformer/graph_attention.py:451
↓ 2 callersMethodtime_delay_agg_inference
SpeedUp version of Autocorrelation (a batch-normalization style design) This is for the inference phase.
layers/AutoCorrelation.py:97
↓ 2 callersMethodtime_delay_agg_training
SpeedUp version of Autocorrelation (a batch-normalization style design) This is for the training phase.
layers/AutoCorrelation.py:73
↓ 2 callersFunctiontransition
A, B transition matrices for different measures. measure: the type of measure legt - Legendre (translated) legs - Legendre (scaled)
utils/op.py:10
↓ 2 callersMethodunwire
(self)
models/reformer_pytorch/recorder.py:27
↓ 2 callersMethodvali
(self, vali_data, vali_loader, criterion)
exp/exp_AE.py:56
↓ 2 callersMethodvali
(self, vali_data, vali_loader, criterion)
exp/exp_main.py:75
↓ 2 callersFunctionvariable_unroll_toeplitz
Unroll with variable (in time/length) transitions A with general associative operation A : ([L], ..., N) dimension L should exist iff variable i
utils/unroll.py:412
↓ 1 callersFunctionLinearActivation
Returns a linear nn.Module with control over axes order, initialization, and activation
layers/S4.py:170
↓ 1 callersFunctionMAE
(pred, true)
utils/metrics.py:14
↓ 1 callersFunctionMAPE
(pred, true)
utils/metrics.py:26
↓ 1 callersFunctionMSPE
(pred, true)
utils/metrics.py:30
↓ 1 callersFunctionRMSE
(pred, true)
utils/metrics.py:22
next →1–100 of 571, ranked by callers