MCPcopy Create free account

hub / github.com/pytorch/examples / functions

Functions460 in github.com/pytorch/examples

Method__init__
(self, size)
distributed/ddp-tutorial-series/datautils.py:5
Method__init__
( self, model: torch.nn.Module, train_data: DataLoader, optimizer: torch.optim
distributed/ddp-tutorial-series/multigpu_torchrun.py:18
Method__init__
( self, model: torch.nn.Module, train_data: DataLoader, optimizer: torch.optim
distributed/ddp-tutorial-series/multinode.py:18
Method__init__
(self, in_features, out_features, bias=True, device=None, dtype=None)
mnist_forward_forward/main.py:60
Method__init__
(self)
fx/wrap_output_dynamically.py:22
Method__init__
(self)
fx/inline_function.py:32
Method__init__
(self)
fx/custom_tracer.py:46
Method__init__
(self)
fx/subgraph_rewriter_basic_use.py:30
Method__init__
(self, interpreter)
fx/native_interpreter/use_interpreter.py:83
Method__init__
(self)
time_sequence_prediction/train.py:12
Method__init__
(self)
mnist_rnn/main.py:14
Method__init__
(self, image_dir, input_transform=None, target_transform=None)
super_resolution/dataset.py:19
Method__init__
(self, upscale_factor)
super_resolution/model.py:7
Method__init__
(self)
language_translation/src/data.py:123
Method__init__
( self, emb_size, dropout, maxlen=5000 )
language_translation/src/model.py:8
Method__init__
(self)
mnist_hogwild/main.py:40
Method__init__
(self, ngpu)
dcgan/main.py:170
Method__init__
(self)
siamese_network/main.py:27
Method__init__
(self, input_dim, output_dim, use_bias=False)
gcn/main.py:33
Method__init__
(self)
fast_neural_style/neural_style/transformer_net.py:5
Method__init__
(self, channels)
fast_neural_style/neural_style/transformer_net.py:63
Method__init__
(self, in_channels, out_channels, kernel_size, stride, upsample=None)
fast_neural_style/neural_style/transformer_net.py:86
Method__init__
(self, requires_grad=False)
fast_neural_style/neural_style/vgg.py:8
Method__len__
(self)
word_language_model/data.py:16
Method__len__
(self)
distributed/FSDP/summarization_dataset.py:36
Method__len__
(self)
distributed/minGPT-ddp/mingpt/char_dataset.py:33
Method__len__
(self)
distributed/ddp-tutorial-series/datautils.py:9
Method__len__
(self)
super_resolution/dataset.py:36
Method__len__
(self)
siamese_network/main.py:115
Method__str__
(self)
imagenet/main.py:471
Function_call_method
r""" a helper function to call a method on the given RRef
distributed/rpc/rl/main.py:34
Function_call_method
r""" a helper function to call a method on the given RRef
distributed/rpc/rnn/rnn.py:7
Function_collate_fn
(batch)
language_translation/src/data.py:82
Method_init_weights
(self, module)
distributed/minGPT-ddp/mingpt/model.py:150
Function_run_trainer
r""" Each trainer runs a forward pass which involves an embedding lookup on the parameter server and running nn.Linear locally. During the bac
distributed/rpc/ddp_rpc/main.py:43
Function_tensor_transform
(token_ids)
language_translation/src/data.py:70
Functionapply_fsdp_checkpointing
apply activation checkpointing to model returns None as model is updated directly
distributed/FSDP/policies/activation_checkpointing_functions.py:23
Functioncall_method
(method, rref, *args, **kwargs)
distributed/rpc/parameter_server/rpc_parameter_server.py:68
Methodcall_module
Override of Tracer.call_module (see https://pytorch.org/docs/stable/fx.html#torch.fx.Tracer.call_module). This override:
fx/module_tracer.py:30
Functionclosure
()
time_sequence_prediction/train.py:61
Methodcreate_node
(self, kind, target, args, kwargs, name=None, type_expr=None)
fx/primitive_library.py:127
Functioncreate_optimizer_for_remote_params
Create torch.compiled optimizers on each worker
distributed/rpc/pipeline/main.py:196
Methodfake_profiler_enter
(_self)
fx/profiling_tracer.py:70
Methodfake_profiler_exit
(_self, exc_type, exc_value, traceback)
fx/profiling_tracer.py:82
Methodforward
(self, x)
vae/main.py:69
Methodforward
Performs a graph attention layer operation. Args: h (torch.Tensor): Input tensor representing node features.
gat/main.py:92
Methodforward
Performs a forward pass through the network. Args: input_tensor (torch.Tensor): Input tensor representing node features.
gat/main.py:184
Methodforward
forward of both actor and critic
reinforcement_learning/actor_critic.py:54
Methodforward
(self, x)
reinforcement_learning/reinforce.py:41
Methodforward
(self, input, hidden)
word_language_model/model.py:48
Methodforward
r"""Inputs of forward function Args: x: the sequence fed to the positional encoder model (required). Shape: x:
word_language_model/model.py:93
Methodforward
(self, src, has_mask=True)
word_language_model/model.py:131
Methodforward
(self, x)
mnist/main.py:20
Methodforward
(self, input)
legacy/snli/model.py:7
Methodforward
(self, inputs)
legacy/snli/model.py:30
Methodforward
(self, batch)
legacy/snli/model.py:64
Methodforward
(self, x)
distributed/ddp/example.py:27
Methodforward
(self, x)
distributed/tensor_parallelism/tensor_parallel_example.py:66
Methodforward
(self, x: torch.Tensor)
distributed/tensor_parallelism/llama2_model.py:137
Methodforward
Forward pass of the attention module. Args: x (torch.Tensor): Input tensor. freqs_cis (torch.Tensor): Precom
distributed/tensor_parallelism/llama2_model.py:190
Methodforward
(self, x)
distributed/tensor_parallelism/llama2_model.py:266
Methodforward
Perform a forward pass through the TransformerBlock. Args: x (torch.Tensor): Input tensor. freqs_cis (torch.
distributed/tensor_parallelism/llama2_model.py:321
Methodforward
Perform a forward pass through the Transformer model. Args: tokens (torch.Tensor): Input token indices. Returns
distributed/tensor_parallelism/llama2_model.py:428
Methodforward
(self, x)
distributed/tensor_parallelism/sequence_parallel_example.py:56
Methodforward
(self, indices, offsets)
distributed/rpc/ddp_rpc/main.py:38
Methodforward
(self, x)
distributed/rpc/parameter_server/rpc_parameter_server.py:43
Methodforward
(self, inp)
distributed/rpc/parameter_server/rpc_parameter_server.py:95
Methodforward
(self, x)
distributed/rpc/parameter_server/rpc_parameter_server.py:165
Methodforward
(self, x)
distributed/rpc/rl/main.py:65
Methodforward
(self, input)
distributed/rpc/rnn/rnn.py:51
Methodforward
(self, output)
distributed/rpc/rnn/rnn.py:69
Methodforward
(self, input, hidden)
distributed/rpc/rnn/rnn.py:90
Methodforward
(self, x_rref)
distributed/rpc/pipeline/main.py:134
Methodforward
(self, xs)
distributed/rpc/pipeline/main.py:166
Methodforward
(self, x)
distributed/rpc/batch/reinforce.py:53
Methodforward
(self, x)
distributed/FSDP2/model.py:32
Methodforward
(self, x)
distributed/FSDP2/model.py:68
Methodforward
(self, x)
distributed/FSDP2/model.py:86
Methodforward
(self, tokens)
distributed/FSDP2/model.py:116
Methodforward
(self, x)
distributed/minGPT-ddp/mingpt/model.py:55
Methodforward
(self, x)
distributed/minGPT-ddp/mingpt/model.py:75
Methodforward
(self, idx)
distributed/minGPT-ddp/mingpt/model.py:91
Methodforward
(self, idx, targets=None)
distributed/minGPT-ddp/mingpt/model.py:159
Methodforward
(self, x)
fx/profiling_tracer.py:17
Methodforward
(self, x, y)
fx/replace_op.py:33
Methodforward
(self, x, y)
fx/wrap_output_dynamically.py:25
Methodforward
(self, x)
fx/inline_function.py:36
Methodforward
(self, x)
fx/custom_tracer.py:50
Methodforward
(self, a, b)
fx/custom_tracer.py:95
Methodforward
(self, x, y)
fx/primitive_library.py:46
Methodforward
(self, x, w1, w2)
fx/subgraph_rewriter_basic_use.py:33
Methodforward
(self, x, y)
fx/native_interpreter/use_interpreter.py:115
Methodforward
(self, input, future = 0)
time_sequence_prediction/train.py:18
Methodforward
(self, input)
mnist_rnn/main.py:23
Methodforward
(self, x)
super_resolution/model.py:19
Methodforward
(self, token_embedding)
language_translation/src/model.py:25
Methodforward
(self, src, trg, src_mask, tgt_mask, src_padding_mask, tgt_padding_mask, memory_key_padding_mask)
language_translation/src/model.py:66
Methodforward
(self, x)
mnist_hogwild/main.py:48
Methodforward
(self, input)
dcgan/main.py:153
Methodforward
(self, input)
dcgan/main.py:194
← previousnext →301–400 of 460, ranked by callers