MCPcopy Create free account

hub / github.com/pytorch/tutorials / functions

Functions760 in github.com/pytorch/tutorials

Function_comm_worker
Per-rank worker: build, capture, profile, and (on rank 0) post-process.
advanced_source/cuda_graph_annotations_tutorial.py:750
Function_forward
(self, input_tensordict: TensorDictBase)
advanced_source/coding_ddpg.py:356
Method_get_event_multiplexer_for_trial
(self, trial)
intermediate_source/ax_multiobjective_nas_tutorial.py:244
Function_init
( self, actor_network: TensorDictModule, value_network: TensorDictModule, )
advanced_source/coding_ddpg.py:188
Function_loss_actor
( self, tensordict, )
advanced_source/coding_ddpg.py:287
Function_loss_value
( self, tensordict, )
advanced_source/coding_ddpg.py:312
Function_make_spec
(self, td_params)
advanced_source/pendulum.py:404
Function_reset
(self, tensordict)
advanced_source/pendulum.py:312
Method_reset
( self, tensordict: TensorDictBase, tensordict_reset: TensorDictBase )
advanced_source/pendulum.py:680
Method_reset
( self, tensordict: TensorDictBase, tensordict_reset: TensorDictBase )
advanced_source/pendulum.py:704
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
advanced_source/rpc_ddp_tutorial/main.py:39
Function_set_seed
(self, seed: Optional[int])
advanced_source/pendulum.py:468
Function_step
(tensordict)
advanced_source/pendulum.py:242
Method_wait_impl
(self)
intermediate_source/torchrec_intro_tutorial.py:639
Functionadd_kernel
( in_ptr0, in_ptr1, out_ptr, n_elements, BLOCK_SIZE: "tl.constexpr",
recipes_source/torch_compile_user_defined_triton_kernel_tutorial.py:52
Functionadd_kernel_autotuned
( in_ptr0, in_ptr1, out_ptr, n_elements, BLOCK_SIZE: "tl.constexpr",
recipes_source/torch_compile_user_defined_triton_kernel_tutorial.py:113
Functionbackward
(ctx, grad)
recipes_source/torch_compile_user_defined_triton_kernel_tutorial.py:254
Methodbackward
(ctx, grad_out)
intermediate_source/custom_function_conv_bn_tutorial.py:147
Methodbackward
(ctx, grad_out)
intermediate_source/custom_function_conv_bn_tutorial.py:192
Methodbackward
(ctx, grad_output)
advanced_source/numpy_extensions_tutorial.py:98
Functionbar
(a, b)
intermediate_source/torch_compile_tutorial.py:311
Methodbody
(x, y, z)
intermediate_source/torch_export_tutorial.py:233
Functioncall_fn
(func, args, kwargs, result_queue)
conf.py:71
Functioncheck_cl
(*args, **kwargs)
intermediate_source/memory_format_tutorial.py:329
Functionclosure
()
advanced_source/neural_style_tutorial.py:436
Functioncomm_annotation_demo
Spawn a ``world_size=2`` group and surface the comm metadata.
advanced_source/cuda_graph_annotations_tutorial.py:804
Functioncompute_loss
(params, buffers, sample, target)
intermediate_source/per_sample_grads.py:137
Methodcompute_mask
(self, t, default_mask)
intermediate_source/pruning_tutorial.py:362
Functioncond_predicate
The conditional statement (aka predicate) passed to ``cond()`` must be one of the following: - ``torch.Tensor`` with a single element - b
intermediate_source/torch_export_tutorial.py:933
Methodconfigure_optimizers
(self)
intermediate_source/mnist_train_nas.py:112
Functionconv_bn_fusion_pass
(graph)
intermediate_source/torch_compile_conv_bn_fuser.py:191
Functionconv_bn_pattern
(x, conv_weight, conv_bias, bn_mean, bn_var, bn_weight, bn_bias)
intermediate_source/torch_compile_conv_bn_fuser.py:142
Functionconv_bn_replacement
(x, conv_weight, conv_bias, bn_mean, bn_var, bn_weight, bn_bias)
intermediate_source/torch_compile_conv_bn_fuser.py:150
Functioncopy_to_device
(*tensors)
intermediate_source/pinmem_nonblock.py:346
Functioncopy_to_device_nonblocking
(*tensors)
intermediate_source/pinmem_nonblock.py:354
Functioncos_kernel
( in_ptr0, out_ptr, n_elements, BLOCK_SIZE: "tl.constexpr", )
recipes_source/torch_compile_user_defined_triton_kernel_tutorial.py:269
Functioncustom_aten_add
(self, other, alpha: float = 1.0)
beginner_source/onnx/onnx_registry_tutorial.py:87
Functioncustom_aten_gelu
(self: FLOAT, approximate: str = "none")
beginner_source/onnx/onnx_registry_tutorial.py:156
Functioncustom_op
(x: torch.Tensor)
intermediate_source/torch_export_tutorial.py:798
Functioncustom_op_meta
(x)
intermediate_source/torch_export_tutorial.py:803
Functioncustom_torch_function
(cls, func, types, args=(), kwargs=None)
recipes_source/recipes/swap_tensors.py:185
Functiondo_some_doubling
(x)
beginner_source/introyt/autogradyt_tutorial.py:647
FunctionevaluateInput
(encoder, decoder, searcher, voc)
beginner_source/chatbot_tutorial.py:1202
Functionexp_adder
(x, y)
beginner_source/introyt/autogradyt_tutorial.py:615
Functionextract_fn_name
Trim everything except the function name.
recipes_source/recipes/timer_quick_start.py:295
Functionf
(x)
intermediate_source/jacobians_hessians.py:332
Functionf1
(x, y)
intermediate_source/torch_compile_tutorial.py:238
Functionf2
(x, y)
intermediate_source/torch_compile_tutorial.py:279
Functionfalse_branch
(y)
intermediate_source/torch_compile_tutorial.py:378
Methodfalse_fn
(x)
intermediate_source/torch_export_tutorial.py:203
Methodfirst_if_tuple
(x)
intermediate_source/mario_rl_tutorial.py:370
Functionfmodel
(params, buffers, x)
intermediate_source/ensembling.py:111
Functionfn
(m)
recipes_source/recipes/swap_tensors.py:203
Functionfnet_single
(params, x)
intermediate_source/neural_tangent_kernels.py:81
Functionfoo
(x, y)
intermediate_source/torch_compile_tutorial.py:73
Functionfoo1
(x1, x2)
intermediate_source/inductor_debug_cpu.py:44
Functionforeach_map_adam
( steps, params, exp_avgs, exp_avg_sqs, weight_decay=0, beta1=0.9, beta2=0.999,
recipes_source/foreach_map.py:98
Functionforward
Forward pass with annotated regions.
advanced_source/cuda_graph_annotations_tutorial.py:166
Methodforward
(self, x)
recipes_source/regional_aot.py:70
Methodforward
(self, x)
recipes_source/regional_aot.py:85
Methodforward
(self, x)
recipes_source/regional_compilation.py:72
Methodforward
(self, x)
recipes_source/regional_compilation.py:93
Methodforward
(self, x)
recipes_source/debug_mode_tutorial.py:150
Methodforward
(self, x)
recipes_source/debug_mode_tutorial.py:251
Methodforward
(self, x)
recipes_source/debug_mode_tutorial.py:260
Methodforward
(self, x)
recipes_source/recipes/reasoning_about_shapes.py:61
Methodforward
(self, x)
recipes_source/recipes/zeroing_out_gradients.py:120
Methodforward
(self, x)
recipes_source/recipes/module_load_state_dict_tips.py:30
Methodforward
(self, x)
recipes_source/recipes/defining_a_neural_network.py:128
Methodforward
(self, x)
recipes_source/recipes/warmstarting_model_using_parameters_from_a_different_model.py:73
Methodforward
(self, x)
recipes_source/recipes/warmstarting_model_using_parameters_from_a_different_model.py:94
Methodforward
(self, x)
recipes_source/recipes/what_is_state_dict.py:77
Methodforward
(self, x)
beginner_source/fgsm_tutorial.py:159
Methodforward
(self, input_seq, input_lengths, hidden=None)
beginner_source/chatbot_tutorial.py:663
Methodforward
(self, hidden, encoder_outputs)
beginner_source/chatbot_tutorial.py:767
Methodforward
(self, input_step, last_hidden, encoder_outputs)
beginner_source/chatbot_tutorial.py:837
Methodforward
(self, input_seq, input_length, max_length)
beginner_source/chatbot_tutorial.py:1129
Methodforward
(self, input, mask)
beginner_source/profiler.py:62
Methodforward
(self, input_ids=None, labels=None, **kwargs)
beginner_source/mosaic_memory_profiling_tutorial.py:653
Methodforward
(self, xb)
beginner_source/nn_tutorial.py:310
Methodforward
(self, xb)
beginner_source/nn_tutorial.py:707
Methodforward
(self, x)
beginner_source/nn_tutorial.py:747
Methodforward
(self, x)
beginner_source/serving_tutorial.py:82
Methodforward
(self, x)
beginner_source/hyperparameter_tuning_tutorial.py:117
Methodforward
(self, input)
beginner_source/dcgan_faces_tutorial.py:358
Methodforward
(self, input)
beginner_source/dcgan_faces_tutorial.py:430
Methodforward
(self, x)
beginner_source/knowledge_distillation_tutorial.py:125
Methodforward
(self, x)
beginner_source/knowledge_distillation_tutorial.py:150
Methodforward
(self, x)
beginner_source/knowledge_distillation_tutorial.py:409
Methodforward
(self, x)
beginner_source/knowledge_distillation_tutorial.py:435
Methodforward
(self, x)
beginner_source/knowledge_distillation_tutorial.py:619
Methodforward
(self, x)
beginner_source/knowledge_distillation_tutorial.py:648
Methodforward
In the forward function we accept a Tensor of input data and we must return a Tensor of output data. We can use Modules defined in th
beginner_source/examples_nn/polynomial_module.py:29
Methodforward
For the forward pass of the model, we randomly choose either 4, 5 and reuse the e parameter to compute the contribution of these orde
beginner_source/examples_nn/dynamic_net.py:28
Methodforward
(self, x)
beginner_source/blitz/cifar10_tutorial.py:138
Methodforward
(self, input)
beginner_source/blitz/neural_networks_tutorial.py:58
Methodforward
(self, input)
beginner_source/blitz/data_parallel_tutorial.py:106
Methodforward
(self, x)
beginner_source/introyt/tensorboardyt_tutorial.py:168
Methodforward
(self, x)
beginner_source/introyt/introyt1_tutorial.py:188
Methodforward
(self, x)
beginner_source/introyt/introyt1_tutorial.py:491
← previousnext →501–600 of 760, ranked by callers