MCPcopy Create free account

hub / github.com/pytorch/tutorials / functions

Functions760 in github.com/pytorch/tutorials

↓ 119 callersFunctionmodel
(xb)
beginner_source/nn_tutorial.py:141
↓ 87 callersMethodstep
Repeat action, and sum reward
intermediate_source/mario_rl_tutorial.py:158
↓ 55 callersMethodbackward
In the backward pass we receive a Tensor containing the gradient of the loss with respect to the output, and we need to compute the g
beginner_source/examples_autograd/polynomial_custom_function.py:51
↓ 28 callersMethodbackward
(ctx, grad_out)
intermediate_source/custom_function_conv_bn_tutorial.py:70
↓ 22 callersMethodbackward
(ctx, grad_output)
advanced_source/numpy_extensions_tutorial.py:45
↓ 22 callersMethodsave
(self)
intermediate_source/mario_rl_tutorial.py:566
↓ 18 callersFunctionloss_fn
(predictions, targets)
intermediate_source/per_sample_grads.py:47
↓ 16 callersFunctiontimer
(cmd)
intermediate_source/pinmem_nonblock.py:262
↓ 11 callersFunctionunsqueeze_all
(t)
intermediate_source/custom_function_conv_bn_tutorial.py:88
↓ 10 callersFunctionbenchmark
(func, *args, **kwargs)
intermediate_source/transformer_building_blocks.py:357
↓ 10 callersMethodrun
(self, *args)
intermediate_source/fx_profiling_tutorial.py:124
↓ 9 callersFunctionfunc
(arg_0, arg_1, arg_2, arg_3, arg_4)
intermediate_source/inductor_debug_cpu.py:574
↓ 9 callersMethodrecord
(self, episode, epsilon, step)
intermediate_source/mario_rl_tutorial.py:690
↓ 8 callersFunctionbenchmark
(f, *args, **kwargs)
unstable_source/gpu_quantization_torchao_tutorial.py:61
↓ 8 callersFunctionbenchmark_torch_function_in_microseconds
(f, *args, **kwargs)
intermediate_source/scaled_dot_product_attention_tutorial.py:68
↓ 7 callersFunctionfit
()
beginner_source/nn_tutorial.py:355
↓ 7 callersFunctionfn
(x, y)
recipes_source/torch_logs.py:40
↓ 7 callersFunctiongen_batch
(N, E_q, E_k, E_v, device, dtype=torch.float32, query_seq_len_1=False)
intermediate_source/transformer_building_blocks.py:313
↓ 7 callersFunctionget_sam_model
(only_one_block=False, batchsize=1)
unstable_source/gpu_quantization_torchao_tutorial.py:73
↓ 7 callersFunctiontrain_and_benchmark
Train a model over multiple epochs and return elapsed time and average loss. Running multiple epochs (10) with a small dataset ensures many epoch
intermediate_source/intermediate_data_loading_tutorial.py:167
↓ 6 callersMethodsample
(self, batch_size)
intermediate_source/reinforcement_q_learning.py:147
↓ 6 callersFunctiontimed
(fn)
intermediate_source/torch_compile_full_example.py:68
↓ 5 callersMethod__init__
(self, num_classes=10)
beginner_source/knowledge_distillation_tutorial.py:104
↓ 5 callersMethod__init__
(self)
intermediate_source/torch_export_tutorial.py:965
↓ 5 callersFunctioncapture_memory_snapshot
Context manager to capture and save PyTorch CUDA memory snapshots. This captures all GPU memory allocations during the context and saves them
beginner_source/mosaic_memory_profiling_tutorial.py:243
↓ 5 callersFunctionfn
(x, y)
intermediate_source/forward_ad_usage.py:39
↓ 5 callersFunctionfoo
(x)
recipes_source/torch_compiler_set_stance_tutorial.py:37
↓ 5 callersFunctiongenerate_data
(b)
intermediate_source/torch_compile_full_example.py:80
↓ 5 callersFunctionget_model
()
beginner_source/nn_tutorial.py:443
↓ 5 callersFunctionmake_env
Create a base ``env``.
advanced_source/coding_ddpg.py:443
↓ 5 callersFunctionmake_transformed_env
Apply transforms to the ``env`` (such as reward scaling and state normalization).
advanced_source/coding_ddpg.py:512
↓ 5 callersFunctionpretty_print
Import machinery for ``cpp_lib.so`` can get repetitive to look at.
recipes_source/recipes/benchmark.py:744
↓ 5 callersFunctionseparator
(name)
recipes_source/torch_logs.py:50
↓ 5 callersFunctiontest_fns
(fn1, fn2, args)
intermediate_source/torch_compile_tutorial.py:245
↓ 4 callersMethod__init__
(self, name)
beginner_source/chatbot_tutorial.py:269
↓ 4 callersMethod__init__
( self, dim, hidden_dim, multiple_of, ffn_dim_multiplier=None,
intermediate_source/transformer_building_blocks.py:745
↓ 4 callersMethod__init__
(self, name)
intermediate_source/seq2seq_translation_tutorial.py:155
↓ 4 callersMethod__init__
()
intermediate_source/mario_rl_tutorial.py:250
↓ 4 callersFunctionbenchmark
(func, *args, **kwargs)
unstable_source/nestedtensor.py:315
↓ 4 callersFunctionbenchmark_with_profiler
( pinned, streamed, )
intermediate_source/pinmem_nonblock.py:171
↓ 4 callersFunctionevaluateAndShowAttention
(input_sentence)
intermediate_source/seq2seq_translation_tutorial.py:838
↓ 4 callersFunctionf
(x)
intermediate_source/autograd_saved_tensors_hooks_tutorial.py:95
↓ 4 callersFunctionget_transform
(train)
intermediate_source/torchvision_tutorial.py:369
↓ 4 callersFunctionimshow
(tensor, title=None)
advanced_source/neural_style_tutorial.py:129
↓ 4 callersFunctioninit_model
()
intermediate_source/torch_compile_full_example.py:92
↓ 4 callersFunctionlineToTensor
(line)
intermediate_source/char_rnn_classification_tutorial.py:132
↓ 4 callersFunctionmake_bow_vector
(sentence, word_to_ix)
beginner_source/nlp/deep_learning_tutorial.py:283
↓ 4 callersFunctionmy_huge_model
(x)
recipes_source/torch_compiler_set_stance_tutorial.py:156
↓ 4 callersFunctionprepare_sequence
(seq, to_ix)
beginner_source/nlp/sequence_models_tutorial.py:126
↓ 4 callersFunctionsamples
(category, start_letters='ABC')
intermediate_source/char_rnn_generation_tutorial.py:410
↓ 4 callersFunctiontimed
(fn)
intermediate_source/torch_compile_tutorial.py:159
↓ 3 callersMethod__init__
(self, func)
beginner_source/nn_tutorial.py:743
↓ 3 callersFunction_stable_uuid
A stable 60-bit track UUID derived from its identifying parts.
advanced_source/cuda_graph_annotations_tutorial.py:325
↓ 3 callersFunctionaccuracy
(out, yb)
beginner_source/nn_tutorial.py:183
↓ 3 callersFunctionargmax
(vec)
beginner_source/nlp/advanced_tutorial.py:130
↓ 3 callersFunctionattribute
(m)
intermediate_source/memory_format_tutorial.py:362
↓ 3 callersFunctioncompute_metrics
(start_logits, end_logits, features, examples)
advanced_source/semi_structured_sparse.py:299
↓ 3 callersFunctionempirical_ntk_jacobian_contraction
(fnet_single, params, x1, x2)
intermediate_source/neural_tangent_kernels.py:103
↓ 3 callersFunctionevaluate
(encoder, decoder, sentence, input_lang, output_lang)
intermediate_source/seq2seq_translation_tutorial.py:734
↓ 3 callersFunctionget_data
(train_ds, valid_ds, bs)
beginner_source/nn_tutorial.py:668
↓ 3 callersFunctionget_perf
takes torch.benchmark objects and compares delta of second vs first.
intermediate_source/jacobians_hessians.py:112
↓ 3 callersFunctionimshow
Display image for Tensor.
beginner_source/transfer_learning_tutorial.py:113
↓ 3 callersFunctionindexesFromSentence
(voc, sentence)
beginner_source/chatbot_tutorial.py:492
↓ 3 callersFunctionindexesFromSentence
(lang, sentence)
intermediate_source/seq2seq_translation_tutorial.py:549
↓ 3 callersFunctioninputTensor
(line)
intermediate_source/char_rnn_generation_tutorial.py:235
↓ 3 callersFunctionjagged_to_padded
(jt, padding_val)
unstable_source/nestedtensor.py:299
↓ 3 callersMethodjvp
(ctx, gI)
intermediate_source/forward_ad_usage.py:145
↓ 3 callersFunctionload_data
(data_dir="./data")
beginner_source/hyperparameter_tuning_tutorial.py:82
↓ 3 callersFunctionmy_big_model
(x)
recipes_source/torch_compiler_set_stance_tutorial.py:134
↓ 3 callersFunctionmy_gigantic_model
(x, y)
recipes_source/torch_compiler_set_stance_tutorial.py:194
↓ 3 callersFunctionprepare_sequence
(seq, to_ix)
beginner_source/nlp/advanced_tutorial.py:136
↓ 3 callersMethodpush
Save a transition
intermediate_source/reinforcement_q_learning.py:143
↓ 3 callersFunctionrun_once
()
recipes_source/debug_mode_tutorial.py:58
↓ 3 callersFunctionshow_landmarks
Show image with landmarks
beginner_source/data_loading_tutorial.py:83
↓ 3 callersFunctionsymmetric
(X)
intermediate_source/parametrizations.py:54
↓ 3 callersFunctiontensorFromSentence
(lang, sentence)
intermediate_source/seq2seq_translation_tutorial.py:552
↓ 3 callersFunctiontest
(model, test_loader, device)
beginner_source/knowledge_distillation_tutorial.py:200
↓ 2 callersMethod__build_cnn
(self, c, output_dim)
intermediate_source/mario_rl_tutorial.py:442
↓ 2 callersMethod__init__
(self)
beginner_source/introyt/modelsyt_tutorial.py:152
↓ 2 callersMethod__init__
(self, n)
intermediate_source/parametrizations.py:224
↓ 2 callersMethod__init__
(self)
intermediate_source/autograd_saved_tensors_hooks_tutorial.py:326
↓ 2 callersMethod__init__
(self, target_feature)
advanced_source/neural_style_tutorial.py:239
↓ 2 callersMethod_get_lstm_features
(self, sentence)
beginner_source/nlp/advanced_tutorial.py:216
↓ 2 callersFunction_make_sparse
(grad, grad_indices, values)
unstable_source/maskedtensor_adagrad.py:100
↓ 2 callersMethodaddSentence
(self, sentence)
beginner_source/chatbot_tutorial.py:277
↓ 2 callersMethodaddSentence
(self, sentence)
intermediate_source/seq2seq_translation_tutorial.py:162
↓ 2 callersMethodaddWord
(self, word)
beginner_source/chatbot_tutorial.py:281
↓ 2 callersFunctionadd_and_round_op
(input: torch.Tensor)
beginner_source/onnx/onnx_registry_tutorial.py:204
↓ 2 callersFunctionadd_fn
(x, y)
recipes_source/torch_compile_user_defined_triton_kernel_tutorial.py:69
↓ 2 callersFunctionasMinutes
(s)
intermediate_source/seq2seq_translation_tutorial.py:647
↓ 2 callersFunctionbar_fixed
(a, b)
intermediate_source/torch_compile_tutorial.py:372
↓ 2 callersFunctionbatch2TrainData
(voc, pair_batch)
beginner_source/chatbot_tutorial.py:529
↓ 2 callersFunctionbatch_norm_backward
(grad_out, X, sum, sqrt_var, N, eps)
intermediate_source/custom_function_conv_bn_tutorial.py:92
↓ 2 callersFunctionbenchmark
(model, iters=20)
intermediate_source/torch_compile_conv_bn_fuser.py:264
↓ 2 callersFunctionbenchmark_torch_function_in_microseconds
(f, *args, **kwargs)
recipes_source/foreach_map.py:176
↓ 2 callersFunctioncapture_graph_with_annotations
Capture the model into a CUDA graph with annotations enabled.
advanced_source/cuda_graph_annotations_tutorial.py:218
↓ 2 callersFunctioncategoryTensor
(category)
intermediate_source/char_rnn_generation_tutorial.py:228
↓ 2 callersFunctionceil_div
(x, y)
advanced_source/coding_ddpg.py:990
↓ 2 callersFunctionconvert_image_np
Convert a Tensor to numpy image.
intermediate_source/spatial_transformer_tutorial.py:213
↓ 2 callersFunctionconvolution_backward
(grad_out, X, weight)
intermediate_source/custom_function_conv_bn_tutorial.py:56
next →1–100 of 760, ranked by callers