MCPcopy Create free account

hub / github.com/pytorch/tutorials / functions

Functions760 in github.com/pytorch/tutorials

↓ 1 callersFunctioncompare_traces
Compare kernel distribution before and after annotation.
advanced_source/cuda_graph_annotations_tutorial.py:510
↓ 1 callersFunctioncompiled_numpy_sin_out
(x)
advanced_source/python_custom_ops_mutable.py:88
↓ 1 callersFunctioncompute_grad
(sample, target)
intermediate_source/per_sample_grads.py:81
↓ 1 callersFunctioncompute_jac
(xp)
intermediate_source/jacobians_hessians.py:49
↓ 1 callersFunctioncompute_sample_grads
manually process each sample with per sample gradient
intermediate_source/per_sample_grads.py:91
↓ 1 callersMethodconcat_score
(self, hidden, encoder_output)
beginner_source/chatbot_tutorial.py:763
↓ 1 callersFunctioncontains_cl
(args)
intermediate_source/memory_format_tutorial.py:304
↓ 1 callersFunctioncreate_model
Create a conv+transformer model for benchmarking.
intermediate_source/intermediate_data_loading_tutorial.py:162
↓ 1 callersFunctioncreate_varlen_metadata
(input_batch: torch.Tensor, eos_id: int)
intermediate_source/variable_length_attention_tutorial.py:156
↓ 1 callersFunctiondenorm
Convert a batch of tensors to their original scale. Args: batch (torch.Tensor): Batch of normalized tensors. mean (torch.Ten
beginner_source/fgsm_tutorial.py:227
↓ 1 callersFunctiondo_stacks
(s: MyStackClass)
advanced_source/custom_classes/custom_class_project/custom_test.py:41
↓ 1 callersMethoddot_score
(self, hidden, encoder_output)
beginner_source/chatbot_tutorial.py:756
↓ 1 callersFunctionempirical_ntk_ntk_vps
(func, params, x1, x2, compute='full')
intermediate_source/neural_tangent_kernels.py:197
↓ 1 callersFunctionevaluate
(encoder, decoder, searcher, voc, sentence, max_length=MAX_LENGTH)
beginner_source/chatbot_tutorial.py:1184
↓ 1 callersFunctionevaluate
(rnn, testing_data, classes)
intermediate_source/char_rnn_classification_tutorial.py:379
↓ 1 callersFunctionevaluateRandomly
(encoder, decoder, n=10)
intermediate_source/seq2seq_translation_tutorial.py:758
↓ 1 callersFunctionextractSentencePairs
(conversations)
beginner_source/chatbot_tutorial.py:199
↓ 1 callersFunctionf
(x)
recipes_source/debug_mode_tutorial.py:115
↓ 1 callersFunctionf
(x)
advanced_source/python_custom_ops_functional.py:96
↓ 1 callersFunctionfgsm_attack
(image, epsilon, data_grad)
beginner_source/fgsm_tutorial.py:216
↓ 1 callersFunctionfilterPair
(p)
beginner_source/chatbot_tutorial.py:359
↓ 1 callersFunctionfilterPair
(p)
intermediate_source/seq2seq_translation_tutorial.py:247
↓ 1 callersFunctionfilterPairs
(pairs)
beginner_source/chatbot_tutorial.py:364
↓ 1 callersFunctionfilterPairs
(pairs)
intermediate_source/seq2seq_translation_tutorial.py:253
↓ 1 callersFunctionfindFiles
(path)
intermediate_source/char_rnn_generation_tutorial.py:93
↓ 1 callersFunctionfoo2
(x1, x2)
intermediate_source/inductor_debug_cpu.py:286
↓ 1 callersFunctionfoobar_unstructured
Prunes tensor corresponding to parameter called `name` in `module` by removing every other entry in the tensors. Modifies module in place (and
intermediate_source/pruning_tutorial.py:371
↓ 1 callersMethodforward
(self, line_tensor)
intermediate_source/char_rnn_classification_tutorial.py:249
↓ 1 callersMethodforward_step
(self, input, hidden)
intermediate_source/seq2seq_translation_tutorial.py:404
↓ 1 callersMethodforward_step
(self, input, hidden, encoder_outputs)
intermediate_source/seq2seq_translation_tutorial.py:518
↓ 1 callersFunctiongen_batch
(N, E_q, E_k, E_v, device)
unstable_source/nestedtensor.py:271
↓ 1 callersMethodgeneral_score
(self, hidden, encoder_output)
beginner_source/chatbot_tutorial.py:759
↓ 1 callersFunctionget_dataloader
(batch_size)
intermediate_source/seq2seq_translation_tutorial.py:562
↓ 1 callersFunctionget_env_stats
Gets the stats of an environment.
advanced_source/coding_ddpg.py:647
↓ 1 callersFunctionget_input_optimizer
(input_img)
advanced_source/neural_style_tutorial.py:395
↓ 1 callersFunctionget_inputs
(optim)
recipes_source/foreach_map.py:68
↓ 1 callersFunctionget_model_instance_segmentation
(num_classes)
intermediate_source/torchvision_tutorial.py:318
↓ 1 callersFunctionget_next_batch
(rank)
advanced_source/rpc_ddp_tutorial/main.py:74
↓ 1 callersFunctionget_perf
takes torch.benchmark objects and compares delta of second vs first.
intermediate_source/per_sample_grads.py:191
↓ 1 callersFunctionget_style_model_and_losses
(cnn, normalization_mean, normalization_std, style_img, content_img,
advanced_source/neural_style_tutorial.py:307
↓ 1 callersFunctionhook_backward
(module_name, grads)
intermediate_source/visualizing_gradients_tutorial.py:150
↓ 1 callersFunctionhook_forward
(module_name, grads, hook_backward)
intermediate_source/visualizing_gradients_tutorial.py:144
↓ 1 callersFunctionhvp
(f, primals, tangents)
intermediate_source/jacobians_hessians.py:326
↓ 1 callersFunctionhvp_revrev
(f, primals, tangents)
intermediate_source/jacobians_hessians.py:344
↓ 1 callersFunctionincorrect_fft
(input)
advanced_source/numpy_extensions_tutorial.py:54
↓ 1 callersFunctioninit_pg
Initialize a NCCL group for one rank of the spawned demo.
advanced_source/cuda_graph_annotations_tutorial.py:739
↓ 1 callersFunctioninner
(x)
recipes_source/torch_compiler_set_stance_tutorial.py:96
↓ 1 callersFunctioninner
(pinned: bool, streamed: bool)
intermediate_source/pinmem_nonblock.py:155
↓ 1 callersFunctioninner
(x)
intermediate_source/torch_compile_tutorial.py:97
↓ 1 callersFunctioninputVar
(l, voc)
beginner_source/chatbot_tutorial.py:511
↓ 1 callersMethodlearn
Update online action value (Q) function with a batch of experiences
intermediate_source/mario_rl_tutorial.py:265
↓ 1 callersFunctionletterToIndex
(letter)
intermediate_source/char_rnn_classification_tutorial.py:123
↓ 1 callersFunctionloadLinesAndConversations
(fileName)
beginner_source/chatbot_tutorial.py:171
↓ 1 callersFunctionloadPrepareData
(corpus, corpus_name, datafile, save_dir)
beginner_source/chatbot_tutorial.py:368
↓ 1 callersMethodlog_episode
Mark end of episode
intermediate_source/mario_rl_tutorial.py:668
↓ 1 callersFunctionlog_softmax
(x)
beginner_source/nn_tutorial.py:138
↓ 1 callersMethodlog_step
(self, reward, loss, q)
intermediate_source/mario_rl_tutorial.py:660
↓ 1 callersFunctionmain
()
tools/linter/adapters/run_from_link.py:56
↓ 1 callersFunctionmain
(num_trials=10, max_num_epochs=10, gpus_per_trial=0, cpus_per_trial=2)
beginner_source/hyperparameter_tuning_tutorial.py:484
↓ 1 callersFunctionmain
()
intermediate_source/variable_length_attention_tutorial.py:310
↓ 1 callersFunctionmake_composite_from_td
(td)
advanced_source/pendulum.py:438
↓ 1 callersFunctionmake_context_vector
(context, word_to_ix)
beginner_source/nlp/word_embeddings_tutorial.py:347
↓ 1 callersFunctionmake_ddpg_actor
( transform_state_dict, device="cpu", )
advanced_source/coding_ddpg.py:726
↓ 1 callersFunctionmake_recorder
(actor_model_explore, transform_state_dict, record_interval)
advanced_source/coding_ddpg.py:884
↓ 1 callersFunctionmake_replay_buffer
(buffer_size, batch_size, random_crop_len, prefetch=3, prb=False)
advanced_source/coding_ddpg.py:935
↓ 1 callersFunctionmake_target
(label, label_to_ix)
beginner_source/nlp/deep_learning_tutorial.py:290
↓ 1 callersFunctionmatplotlib_imshow
(img, one_channel=False)
beginner_source/introyt/tensorboardyt_tutorial.py:103
↓ 1 callersFunctionmatplotlib_imshow
(img, one_channel=False)
beginner_source/introyt/trainingyt.py:106
↓ 1 callersFunctionmy_processing_function
(key, device)
recipes_source/recipes/module_load_state_dict_tips.py:98
↓ 1 callersFunctionmy_special_routine
(t, device)
recipes_source/recipes/module_load_state_dict_tips.py:94
↓ 1 callersFunctionmycos
(x: torch.Tensor)
recipes_source/torch_compile_user_defined_triton_kernel_tutorial.py:284
↓ 1 callersMethodneg_log_likelihood
(self, sentence, tags)
beginner_source/nlp/advanced_tutorial.py:278
↓ 1 callersFunctionnormalizeString
(s)
intermediate_source/seq2seq_translation_tutorial.py:191
↓ 1 callersMethodnum_flat_features
(self, x)
beginner_source/introyt/introyt1_tutorial.py:199
↓ 1 callersMethodnum_flat_features
(self, x)
beginner_source/introyt/modelsyt_tutorial.py:174
↓ 1 callersFunctionnumpy_sin
(x: Tensor)
advanced_source/python_custom_ops_functional.py:70
↓ 1 callersFunctionnumpy_sin
(x: Tensor)
advanced_source/python_custom_ops_registrations.py:45
↓ 1 callersFunctionnumpy_sin_impl
(x: Tensor)
advanced_source/python_custom_ops_functional.py:39
↓ 1 callersFunctionopt_foo2
(x, y)
intermediate_source/torch_compile_tutorial.py:84
↓ 1 callersFunctionoptimize_model
()
intermediate_source/reinforcement_q_learning.py:363
↓ 1 callersFunctionouter
(x)
recipes_source/torch_compiler_set_stance_tutorial.py:101
↓ 1 callersFunctionouter
(x, y)
intermediate_source/torch_compile_tutorial.py:102
↓ 1 callersFunctionoutputVar
(l, voc)
beginner_source/chatbot_tutorial.py:519
↓ 1 callersFunctionparallel_env_constructor
( env_per_collector, transform_state_dict, )
advanced_source/coding_ddpg.py:577
↓ 1 callersFunctionparse_args
()
tools/linter/adapters/run_from_link.py:10
↓ 1 callersFunctionparse_args
()
intermediate_source/mnist_train_nas.py:27
↓ 1 callersMethodpermute_orientation
(self, observation)
intermediate_source/mario_rl_tutorial.py:176
↓ 1 callersFunctionplot
()
advanced_source/pendulum.py:887
↓ 1 callersMethodpredict_batch
(self, images: list[np.ndarray])
beginner_source/serving_tutorial.py:133
↓ 1 callersFunctionpreprocess_train_function
(examples, tokenizer)
advanced_source/semi_structured_sparse.py:249
↓ 1 callersFunctionpreprocess_validation_function
(examples, tokenizer)
advanced_source/semi_structured_sparse.py:223
↓ 1 callersFunctionrandomTrainingExample
()
intermediate_source/char_rnn_generation_tutorial.py:256
↓ 1 callersFunctionrandomTrainingPair
()
intermediate_source/char_rnn_generation_tutorial.py:198
↓ 1 callersFunctionreadLangs
(lang1, lang2, reverse=False)
intermediate_source/seq2seq_translation_tutorial.py:205
↓ 1 callersFunctionreadLines
(filename)
intermediate_source/char_rnn_generation_tutorial.py:104
↓ 1 callersFunctionreadVocs
(datafile, corpus_name)
beginner_source/chatbot_tutorial.py:348
↓ 1 callersMethodrecall
Sample experiences from memory
intermediate_source/mario_rl_tutorial.py:261
↓ 1 callersMethodreset_parameters
(self)
intermediate_source/custom_function_conv_bn_tutorial.py:227
↓ 1 callersFunctionrun_style_transfer
Run the style transfer.
advanced_source/neural_style_tutorial.py:414
↓ 1 callersFunctionrun_training_clean
Training with the normal model.
beginner_source/mosaic_memory_profiling_tutorial.py:684
← previousnext →201–300 of 760, ranked by callers