MCPcopy Create free account

hub / github.com/ml-explore/mlx-examples / functions

Functions1,187 in github.com/ml-explore/mlx-examples

Method__call__
(self, x, hidden=None, cell=None)
musicgen/encodec.py:76
Method__call__
(self, hidden_states)
musicgen/encodec.py:154
Method__call__
(self, hidden_states)
musicgen/encodec.py:200
Method__call__
(self, hidden_states)
musicgen/encodec.py:223
Method__call__
(self, hidden_states)
musicgen/encodec.py:257
Method__call__
(self, hidden_states)
musicgen/encodec.py:310
Method__call__
(self, hidden_states)
musicgen/encodec.py:364
Method__call__
(self, text)
musicgen/musicgen.py:23
Method__call__
( self, queries: mx.array, keys: mx.array, values: mx.array, mask: Opt
musicgen/musicgen.py:86
Method__call__
( self, x: mx.array, conditioning: mx.array, mask: Optional[mx.array] = None,
musicgen/musicgen.py:132
Method__call__
( self, audio_tokens: mx.array, conditioning: mx.array, cache: list[KVCache] =
musicgen/musicgen.py:226
Method__call__
(self, x)
cvae/vae.py:31
Method__call__
(self, x)
cvae/vae.py:74
Method__call__
(self, z)
cvae/vae.py:133
Method__call__
(self, x)
cvae/vae.py:161
Method__call__
( self, text: str, max_length: int = 512, padding: str = "max_length",
video/wan2.1/wan/tokenizers.py:24
Method__call__
(self, x: mx.array)
video/wan2.1/wan/clip.py:32
Method__call__
(self, x: mx.array)
video/wan2.1/wan/clip.py:48
Method__call__
(self, x: mx.array)
video/wan2.1/wan/clip.py:65
Method__call__
Args: x: [B, 224, 224, 3] preprocessed image (channels-last). Returns: [B, 257, 1280] CLS + patch token feat
video/wan2.1/wan/clip.py:98
Method__call__
(self, x, grid_sizes)
video/wan2.1/wan/layers.py:68
Method__call__
(self, x, context)
video/wan2.1/wan/layers.py:113
Method__call__
(self, x, context)
video/wan2.1/wan/layers.py:133
Method__call__
( self, x: mx.array, e: mx.array, grid_sizes: list, context: mx.array,
video/wan2.1/wan/layers.py:200
Method__call__
(self, x: mx.array, e: mx.array)
video/wan2.1/wan/layers.py:248
Method__call__
(self, lq, lk)
video/wan2.1/wan/t5.py:48
Method__call__
(self, x, context=None, mask=None, pos_bias=None)
video/wan2.1/wan/t5.py:69
Method__call__
(self, x)
video/wan2.1/wan/t5.py:101
Method__call__
(self, x, mask=None, pos_bias=None)
video/wan2.1/wan/t5.py:119
Method__call__
(self, ids, mask=None)
video/wan2.1/wan/t5.py:154
Method__call__
(self, x, feat_cache)
video/wan2.1/wan/vae.py:96
Method__call__
(self, x, feat_cache)
video/wan2.1/wan/vae.py:217
Method__call__
(self, x, cache_x=None)
video/wan2.1/wan/vae_layers.py:70
Method__call__
(self, x, cache=None)
video/wan2.1/wan/vae_layers.py:130
Method__call__
(self, x, cache1, cache2)
video/wan2.1/wan/vae_layers.py:184
Method__call__
(self, x)
video/wan2.1/wan/vae_layers.py:213
Method__call__
Forward pass for t2v and i2v. Args: x: Input latent [F, H, W, C_in] (channels-last) t: Timestep [1]
video/wan2.1/wan/model.py:113
Method__call__
Compute binned relative position bias
t5/t5.py:105
Method__call__
( self, queries: mx.array, keys: mx.array, values: mx.array, mask: Opt
t5/t5.py:136
Method__call__
(self, x)
t5/t5.py:195
Method__call__
(self, x, mask)
t5/t5.py:213
Method__call__
(self, x: mx.array)
t5/t5.py:232
Method__call__
( self, x: mx.array, memory: mx.array, mask: mx.array, memory_mask: mx
t5/t5.py:249
Method__call__
(self, x, memory, mask, memory_mask, cache=None)
t5/t5.py:280
Method__call__
(self, inputs)
t5/t5.py:305
Method__call__
( self, inputs: mx.array, decoder_inputs: mx.array, )
t5/t5.py:346
Method__call__
(self, x, adj)
gcn/gcn.py:9
Method__call__
(self, x, adj)
gcn/gcn.py:25
Method__delitem__
(self, key: str)
segment_anything/segment_anything/utils/amg.py:29
Method__getitem__
(self, key: str)
segment_anything/segment_anything/utils/amg.py:32
Method__getitem__
(self, index: int)
flux/flux/datasets.py:8
Method__getitem__
(self, index: int)
flux/flux/datasets.py:26
Method__getitem__
(self, index: int)
flux/flux/datasets.py:51
Method__getitem__
(self, idx: int)
lora/lora.py:144
Method__getitem__
(self, idx)
lora/data/wikisql.py:92
Method__init__
Uses SAM to calculate the image embedding for an image, and then allow repeated, efficient mask prediction given prompts. Ar
segment_anything/segment_anything/predictor.py:11
Method__init__
Predicts masks given an image and prompt embeddings, using a transformer architecture. Args: transformer_dim (in
segment_anything/segment_anything/mask_decoder.py:11
Method__init__
( self, in_channels: int, out_channels: int, kernel_size: Union[int, tuple],
segment_anything/segment_anything/mask_decoder.py:203
Method__init__
Using a SAM model, generates masks for the entire image. Generates a grid of point prompts over the image, then filters low q
segment_anything/segment_anything/automatic_mask_generator.py:29
Method__init__
Args: img_size (int): Input image size. patch_size (int): Patch size. in_chans (int): Number of input ima
segment_anything/segment_anything/image_encoder.py:10
Method__init__
Args: dim (int): Number of input channels. num_heads (int): Number of attention heads in each ViT block.
segment_anything/segment_anything/image_encoder.py:121
Method__init__
Args: dim (int): Number of input channels. num_heads (int): Number of attention heads. qkv_bias (bool):
segment_anything/segment_anything/image_encoder.py:189
Method__init__
Args: kernel_size (Tuple): kernel size of the projection layer. stride (Tuple): stride of the projection layer.
segment_anything/segment_anything/image_encoder.py:398
Method__init__
(self, num_channels: int, eps: float = 1e-6)
segment_anything/segment_anything/common.py:24
Method__init__
A transformer decoder that attends to an input image using queries whose positional embedding is supplied. Args:
segment_anything/segment_anything/transformer.py:11
Method__init__
A transformer block with four layers: (1) self-attention of sparse inputs, (2) cross attention of sparse inputs to dense inputs, (3)
segment_anything/segment_anything/transformer.py:103
Method__init__
SAM predicts object masks from an image and input prompts. Args: vision_encoder (ImageEncoderViT): The backbone used to
segment_anything/segment_anything/sam.py:19
Method__init__
Encodes prompts for input to SAM's mask decoder. Args: embed_dim (int): The prompts' embedding dimension ima
segment_anything/segment_anything/prompt_encoder.py:10
Method__init__
(self, num_pos_feats: int = 64, scale: Optional[float] = None)
segment_anything/segment_anything/prompt_encoder.py:195
Method__init__
(self, target_length: int)
segment_anything/segment_anything/utils/transforms.py:17
Method__init__
(self, **kwargs)
segment_anything/segment_anything/utils/amg.py:16
Method__init__
(self, bpe_ranks, vocab, max_length=77)
flux/flux/tokenizers.py:11
Method__init__
(self, model_file, max_length=512)
flux/flux/tokenizers.py:123
Method__init__
(self, model_dims: int, num_heads: int, activation: str)
flux/flux/clip.py:49
Method__init__
(self, dim: int, theta: int, axes_dim: List[int])
flux/flux/layers.py:61
Method__init__
(self, in_dim: int, hidden_dim: int)
flux/flux/layers.py:79
Method__init__
(self, dim: int, num_heads: int = 8, qkv_bias: bool = False)
flux/flux/layers.py:99
Method__init__
(self, dim: int, double: bool)
flux/flux/layers.py:130
Method__init__
( self, hidden_size: int, num_heads: int, mlp_ratio: float, qkv_bias: bool = False )
flux/flux/layers.py:147
Method__init__
( self, hidden_size: int, num_heads: int, mlp_ratio: float = 4.0, qk_s
flux/flux/layers.py:254
Method__init__
(self, hidden_size: int, patch_size: int, out_channels: int)
flux/flux/layers.py:307
Method__init__
(self, config: T5Config, bidirectional: bool)
flux/flux/t5.py:71
Method__init__
(self, config: T5Config)
flux/flux/t5.py:120
Method__init__
(self, config: T5Config)
flux/flux/t5.py:162
Method__init__
(self, config: T5Config)
flux/flux/t5.py:193
Method__init__
(self, config: T5Config)
flux/flux/t5.py:211
Method__init__
(self, dataset: str, data_file)
flux/flux/datasets.py:18
Method__init__
(self, dataset: str)
flux/flux/datasets.py:35
Method__init__
(self, dataset: str)
flux/flux/datasets.py:43
Method__init__
(self, in_channels: int)
flux/flux/autoencoder.py:25
Method__init__
(self, in_channels: int, out_channels: int)
flux/flux/autoencoder.py:56
Method__init__
(self, in_channels: int)
flux/flux/autoencoder.py:102
Method__init__
(self, in_channels: int)
flux/flux/autoencoder.py:115
Method__init__
( self, ch: int, out_ch: int, ch_mult: list[int], num_res_blocks: int,
flux/flux/autoencoder.py:213
Method__init__
(self, params: AutoEncoderParams)
flux/flux/autoencoder.py:312
Method__init__
(self, name: str, base_shift: float = 0.5, max_shift: float = 1.15)
flux/flux/sampler.py:10
Method__init__
( self, input_dims: int, output_dims: int, r: int = 8, dropout: float
flux/flux/lora.py:45
Method__init__
(self, flux: FluxPipeline, dataset: Dataset, args)
flux/flux/trainer.py:12
Method__init__
(self, params: FluxParams)
flux/flux/model.py:37
Method__init__
(self, name: str, t5_padding: bool = True)
flux/flux/flux.py:23
← previousnext →701–800 of 1,187, ranked by callers