MCPcopy Create free account

hub / github.com/pytorch/tutorials / functions

Functions760 in github.com/pytorch/tutorials

↓ 2 callersFunctioncount_lanes
Count kernels per lane (tid).
advanced_source/cuda_graph_annotations_tutorial.py:512
↓ 2 callersFunctioncreate_model
Create a GPT-2 small model with random weights.
beginner_source/distributed_training_with_ray_tutorial.py:249
↓ 2 callersFunctiondownload_file
(url: str, location: Path)
tools/linter/adapters/run_from_link.py:49
↓ 2 callersFunctionend_timer_and_print
(local_msg)
recipes_source/recipes/amp_recipe.py:43
↓ 2 callersFunctionf
(x)
unstable_source/vmap_recipe.py:85
↓ 2 callersFunctionfc_layer
Return a stack of linear->norm->sigmoid layers
intermediate_source/visualizing_gradients_tutorial.py:61
↓ 2 callersFunctionfn
()
recipes_source/compiling_optimizer_lr_scheduler.py:65
↓ 2 callersFunctionfoo3
(x)
intermediate_source/torch_compile_tutorial.py:146
↓ 2 callersMethodforward
(ctx, foo)
intermediate_source/forward_ad_usage.py:137
↓ 2 callersFunctionfuse_conv_bn_weights
(conv_w, conv_b, bn_rm, bn_rv, bn_eps, bn_w, bn_b)
intermediate_source/torch_compile_conv_bn_fuser.py:119
↓ 2 callersFunctiongenerate_rand_batch
( batch_size, max_sequence_len, embed_dimension, pad_percentage=None, dtype=torch.float16,
intermediate_source/scaled_dot_product_attention_tutorial.py:194
↓ 2 callersFunctionget_all_layers
Register forward pass hook (which registers a backward hook) to model outputs Returns: - layers: a dict with keys as layer/module and val
intermediate_source/visualizing_gradients_tutorial.py:156
↓ 2 callersFunctionget_grads
(grads)
intermediate_source/visualizing_gradients_tutorial.py:218
↓ 2 callersFunctiongram_matrix
(input)
advanced_source/neural_style_tutorial.py:217
↓ 2 callersFunctionimage_loader
(image_name)
advanced_source/neural_style_tutorial.py:105
↓ 2 callersFunctionimshow
(img)
beginner_source/blitz/cifar10_tutorial.py:101
↓ 2 callersFunctionimshow
(img)
beginner_source/introyt/introyt1_tutorial.py:382
↓ 2 callersMethodinitHidden
(self)
intermediate_source/char_rnn_generation_tutorial.py:178
↓ 2 callersMethodinit_episode
(self)
intermediate_source/mario_rl_tutorial.py:683
↓ 2 callersMethodinit_hidden
(self)
beginner_source/nlp/advanced_tutorial.py:181
↓ 2 callersFunctionlabel_from_output
(output, output_labels)
intermediate_source/char_rnn_classification_tutorial.py:268
↓ 2 callersFunctionlog_sum_exp
(vec)
beginner_source/nlp/advanced_tutorial.py:142
↓ 2 callersFunctionloss_batch
(model, loss_func, xb, yb, opt=None)
beginner_source/nn_tutorial.py:633
↓ 2 callersFunctionmake_model
(in_size, out_size, num_layers)
recipes_source/recipes/amp_recipe.py:55
↓ 2 callersFunctionmaskNLLLoss
(inp, target, mask)
beginner_source/chatbot_tutorial.py:876
↓ 2 callersFunctionmeasure_compile_time
(input, regional=False)
recipes_source/regional_aot.py:178
↓ 2 callersFunctionmeasure_execution_time
(model, batch_sizes, dataset)
advanced_source/semi_structured_sparse.py:364
↓ 2 callersFunctionmeasure_latency
(fn, input)
recipes_source/regional_compilation.py:150
↓ 2 callersFunctionmodel
(feature_vec)
unstable_source/vmap_recipe.py:58
↓ 2 callersFunctionmy_humongous_model
(x)
recipes_source/torch_compiler_set_stance_tutorial.py:222
↓ 2 callersFunctionmysin
(x: torch.Tensor)
recipes_source/torch_compile_user_defined_triton_kernel_tutorial.py:209
↓ 2 callersFunctionnormalizeString
(s)
beginner_source/chatbot_tutorial.py:340
↓ 2 callersFunctionnumpy_sin_out
(x: Tensor, out: Tensor)
advanced_source/python_custom_ops_mutable.py:65
↓ 2 callersFunctionnumpy_sin_strided_impl
(x: Tensor)
advanced_source/python_custom_ops_functional.py:117
↓ 2 callersFunctionplot_durations
(show_result=False)
intermediate_source/reinforcement_q_learning.py:320
↓ 2 callersFunctionpost_process_trace
Merge annotations into the trace and emit a Perfetto ``.pftrace``.
advanced_source/cuda_graph_annotations_tutorial.py:478
↓ 2 callersFunctionpredict
(weight, bias, x)
intermediate_source/jacobians_hessians.py:32
↓ 2 callersMethodpreload
(self)
intermediate_source/intermediate_data_loading_tutorial.py:492
↓ 2 callersFunctionprepareData
(lang1, lang2, reverse=False)
intermediate_source/seq2seq_translation_tutorial.py:265
↓ 2 callersFunctionprintLines
(file, n=10)
beginner_source/chatbot_tutorial.py:144
↓ 2 callersFunctionprint_inputs
(args, indent="")
intermediate_source/memory_format_tutorial.py:315
↓ 2 callersFunctionprofile_graph
Profile graph replays and save the trace.
advanced_source/cuda_graph_annotations_tutorial.py:248
↓ 2 callersFunctionprofile_mem
(cmd)
intermediate_source/pinmem_nonblock.py:396
↓ 2 callersFunctionrandomChoice
(l)
intermediate_source/char_rnn_generation_tutorial.py:194
↓ 2 callersFunctionrun_model
(model, data, *, compile_with=None)
recipes_source/debug_mode_tutorial.py:140
↓ 2 callersFunctionrun_training_ac
Run training loop and capture memory snapshot. Args: activation_checkpointing: Whether to enable gradient checkpointing. snapshot
beginner_source/mosaic_memory_profiling_tutorial.py:282
↓ 2 callersFunctionsave_annotations
Save kernel annotations to a pickle file.
advanced_source/cuda_graph_annotations_tutorial.py:280
↓ 2 callersFunctionstart_timer
()
recipes_source/recipes/amp_recipe.py:35
↓ 2 callersMethodstn
(self, x)
intermediate_source/spatial_transformer_tutorial.py:124
↓ 2 callersFunctiontest_fn
(x, y)
recipes_source/torch_compile_torch_function_modes.py:45
↓ 2 callersFunctiontest_multiple_outputs
(model, test_loader, device)
beginner_source/knowledge_distillation_tutorial.py:530
↓ 2 callersFunctiontimed
(fn)
recipes_source/torch_compiler_set_stance_tutorial.py:183
↓ 2 callersFunctiontimed
(fn)
recipes_source/torch_export_aoti_python.py:209
↓ 2 callersFunctiontrain
(model, train_loader, epochs, learning_rate, device)
beginner_source/knowledge_distillation_tutorial.py:174
↓ 2 callersFunctiontrain
(model, optimizer)
intermediate_source/optimizer_step_in_backward_tutorial.py:46
↓ 2 callersFunctiontrain_model
(model, criterion, optimizer, scheduler, num_epochs=25)
beginner_source/transfer_learning_tutorial.py:149
↓ 2 callersFunctiontrain_one_epoch
(epoch_index, tb_writer)
beginner_source/introyt/trainingyt.py:228
↓ 2 callersFunctionts_us_to_ns
(value)
advanced_source/cuda_graph_annotations_tutorial.py:418
↓ 2 callersFunctionunicodeToAscii
(s)
intermediate_source/char_rnn_generation_tutorial.py:96
↓ 2 callersFunctionvisualize_model
(model, num_images=6)
beginner_source/transfer_learning_tutorial.py:227
↓ 2 callersFunctionzeroPadding
(l, fillvalue=PAD_token)
beginner_source/chatbot_tutorial.py:496
↓ 1 callersMethod__init__
(self)
recipes_source/regional_aot.py:63
↓ 1 callersMethod__init__
(self)
recipes_source/regional_compilation.py:65
↓ 1 callersMethod__init__
(self)
recipes_source/debug_mode_tutorial.py:246
↓ 1 callersMethod__init__
(self)
recipes_source/recipes/warmstarting_model_using_parameters_from_a_different_model.py:64
↓ 1 callersMethod__init__
(self, vocab_size, seq_length=512, num_samples=100, seed=None)
beginner_source/mosaic_memory_profiling_tutorial.py:221
↓ 1 callersMethod__init__
(self, ngpu)
beginner_source/dcgan_faces_tutorial.py:332
↓ 1 callersMethod__init__
(self)
beginner_source/introyt/introyt1_tutorial.py:482
↓ 1 callersMethod__init__
(self)
beginner_source/nlp/word_embeddings_tutorial.py:337
↓ 1 callersMethod__init__
(self, embed_dim: int, num_heads: int)
intermediate_source/variable_length_attention_tutorial.py:220
↓ 1 callersMethod__init__
(self, fused=True)
intermediate_source/custom_function_conv_bn_tutorial.py:250
↓ 1 callersMethod__init__
(self)
intermediate_source/torch_compile_conv_bn_fuser.py:52
↓ 1 callersMethod__init__
(self, loader, device)
intermediate_source/intermediate_data_loading_tutorial.py:484
↓ 1 callersMethod__init__
(self, td_params=None, seed=None, device="cpu")
advanced_source/pendulum.py:528
↓ 1 callersFunction_add_debug_annotation
Carry a Chrome event arg over as a typed Perfetto debug annotation.
advanced_source/cuda_graph_annotations_tutorial.py:363
↓ 1 callersFunction_assign_nesting_lanes
Split overlapping slices into backing lanes so each lane is nestable. A lane only holds slices that are either disjoint or fully contained, so a
advanced_source/cuda_graph_annotations_tutorial.py:331
↓ 1 callersMethod_forward_alg
(self, feats)
beginner_source/nlp/advanced_tutorial.py:185
↓ 1 callersFunction_is_article_title
Detect Wikitext article title lines like ' = Some Title = '.
beginner_source/distributed_training_with_ray_tutorial.py:165
↓ 1 callersMethod_score_sentence
(self, feats, tags)
beginner_source/nlp/advanced_tutorial.py:224
↓ 1 callersMethod_viterbi_decode
(self, feats)
beginner_source/nlp/advanced_tutorial.py:234
↓ 1 callersMethodact
Given a state, choose an epsilon-greedy action
intermediate_source/mario_rl_tutorial.py:253
↓ 1 callersMethodaddWord
(self, word)
intermediate_source/seq2seq_translation_tutorial.py:166
↓ 1 callersFunctionadd_tensors1
(x, y)
beginner_source/introyt/autogradyt_tutorial.py:408
↓ 1 callersFunctionadd_tensors2
(x, y)
beginner_source/introyt/autogradyt_tutorial.py:413
↓ 1 callersFunctionanalyze_training_memory
Analyze a memory snapshot using Mosaic's Python API. Returns a structured dictionary with memory breakdown. Args: snapshot_path: Pat
beginner_source/mosaic_memory_profiling_tutorial.py:1021
↓ 1 callersFunctionangle_normalize
(x)
advanced_source/pendulum.py:276
↓ 1 callersFunctionannotate_collective
Annotate a collective with the metadata eager NCCL traces expose. Returns a ``mark_kernels`` context manager. Any kernels launched inside (i.
advanced_source/cuda_graph_annotations_tutorial.py:664
↓ 1 callersFunctionaot_compile_load_model
(regional=False)
recipes_source/regional_aot.py:187
↓ 1 callersFunctionbar
(x)
recipes_source/torch_compiler_set_stance_tutorial.py:55
↓ 1 callersFunctionbatched_dot_bmm
Computes batched dot by reducing to ``bmm``
recipes_source/recipes/benchmark.py:65
↓ 1 callersFunctionbatched_dot_mul_sum
Computes batched dot by multiplying and summing
recipes_source/recipes/benchmark.py:60
↓ 1 callersFunctionbaz
(x)
recipes_source/torch_compiler_set_stance_tutorial.py:83
↓ 1 callersFunctionbenchmark_batch_size
Benchmark data loading with a specific batch size.
intermediate_source/intermediate_data_loading_tutorial.py:278
↓ 1 callersFunctionbinaryMatrix
(l, value=PAD_token)
beginner_source/chatbot_tutorial.py:499
↓ 1 callersFunctionbuild_comm_block
Create a compute + collective block annotated for profiling.
advanced_source/cuda_graph_annotations_tutorial.py:707
↓ 1 callersFunctionbuild_transformer_block
Create a simple transformer block with parameters.
advanced_source/cuda_graph_annotations_tutorial.py:148
↓ 1 callersMethodcache
Add the experience to memory
intermediate_source/mario_rl_tutorial.py:257
↓ 1 callersFunctioncall_in_subprocess
(func)
conf.py:79
↓ 1 callersFunctioncheck_memory_regression
Check if memory usage exceeds threshold for CI/CD pipelines. Args: report: Memory analysis report from training_pipeline_with_memory_moni
beginner_source/mosaic_memory_profiling_tutorial.py:1179
↓ 1 callersFunctioncheck_wrapper
(fn)
intermediate_source/memory_format_tutorial.py:326
← previousnext →101–200 of 760, ranked by callers