评价此页

计算时间#

所有 galleries 中 121 个文件的总执行时间为 05:07.276

示例

时间

内存 (MB)

使用 TorchRL 进行强化学习 (PPO) 教程 (intermediate_source/reinforcement_ppo.py)

02:29.300

0.0

sphx_glr_beginner_introyt_tensorboardyt_tutorial.py (beginner_source/introyt/tensorboardyt_tutorial.py)

01:49.060

0.0

torch.nn 到底是什么? (beginner_source/nn_tutorial.py)

00:26.106

0.0

雅可比矩阵、海森矩阵、hvp、vhp 等:组合函数变换 (intermediate_source/jacobians_hessians.py)

00:10.961

0.0

嵌套张量入门 (unstable_source/nestedtensor.py)

00:06.347

0.0

sphx_glr_beginner_basics_data_tutorial.py (beginner_source/basics/data_tutorial.py)

00:04.937

0.0

热身:numpy (beginner_source/examples_tensor/polynomial_numpy.py)

00:00.237

0.0

神经网络 (beginner_source/blitz/neural_networks_tutorial.py)

00:00.137

0.0

聊天机器人教程 (beginner_source/chatbot_tutorial.py)

00:00.003

0.0

知识蒸馏教程 (beginner_source/knowledge_distillation_tutorial.py)

00:00.003

0.0

DCGAN 教程 (beginner_source/dcgan_faces_tutorial.py)

00:00.003

0.0

PyTorch 简介 (beginner_source/nlp/pytorch_tutorial.py)

00:00.003

0.0

torch.compile 简介 (intermediate_source/torch_compile_tutorial.py)

00:00.003

0.0

torch.export 教程 (intermediate_source/torch_export_tutorial.py)

00:00.003

0.0

通过示例学习混合前端语法 (beginner_source/hybrid_frontend/learning_hybrid_frontend_through_example_tutorial.py)

00:00.003

0.0

(Beta) 使用缩放点积注意力 (SDPA) 实现高性能 Transformer (intermediate_source/scaled_dot_product_attention_tutorial.py)

00:00.003

0.0

sphx_glr_beginner_introyt_trainingyt.py (beginner_source/introyt/trainingyt.py)

00:00.003

0.0

使用 PyTorch 进行深度学习 (beginner_source/nlp/deep_learning_tutorial.py)

00:00.003

0.0

sphx_glr_beginner_introyt_introyt1_tutorial.py (beginner_source/introyt/introyt1_tutorial.py)

00:00.003

0.0

前向模式自动微分 (Beta) (intermediate_source/forward_ad_usage.py)

00:00.003

0.0

通过用嵌套张量和 torch.compile() 替换 nn.Transformer 来加速 PyTorch Transformer (intermediate_source/transformer_building_blocks.py)

00:00.003

0.0

计算机视觉迁移学习教程 (beginner_source/transfer_learning_tutorial.py)

00:00.003

0.0

Inductor CPU 后端调试和性能分析 (intermediate_source/inductor_debug_cpu.py)

00:00.002

0.0

在 PyTorch 中正确使用 non_blocking 和 pin_memory() 的指南 (intermediate_source/pinmem_nonblock.py)

00:00.002

0.0

TorchVision 目标检测微调教程 (intermediate_source/torchvision_tutorial.py)

00:00.002

0.0

(原型) 使用 TorchAO 进行 GPU 量化 (unstable_source/gpu_quantization_torchao_tutorial.py)

00:00.002

0.0

从零开始学自然语言处理:使用字符级 RNN 生成名字 (intermediate_source/char_rnn_generation_tutorial.py)

00:00.002

0.0

训练分类器 (beginner_source/blitz/cifar10_tutorial.py)

00:00.002

0.0

对抗性样本生成 (beginner_source/fgsm_tutorial.py)

00:00.002

0.0

张量 (beginner_source/blitz/tensor_tutorial.py)

00:00.002

0.0

使用 PyTorch 进行神经风格迁移 (advanced_source/neural_style_tutorial.py)

00:00.002

0.0

TorchRL 目标:编写 DDPG 损失函数 (advanced_source/coding_ddpg.py)

00:00.002

0.0

PyTorch 中的通道最后内存格式 (intermediate_source/memory_format_tutorial.py)

00:00.002

0.0

sphx_glr_beginner_basics_quickstart_tutorial.py (beginner_source/basics/quickstart_tutorial.py)

00:00.002

0.0

序列模型和长短期记忆网络 (beginner_source/nlp/sequence_models_tutorial.py)

00:00.002

0.0

MaskedTensor 概述 (unstable_source/maskedtensor_overview.py)

00:00.002

0.0

使用 torch.compiler.set_stance 进行动态编译控制 (recipes_source/torch_compiler_set_stance_tutorial.py)

00:00.002

0.0

训练一个玩马里奥的强化学习智能体 (intermediate_source/mario_rl_tutorial.py)

00:00.002

0.0

空间变换网络教程 (intermediate_source/spatial_transformer_tutorial.py)

00:00.002

0.0

使用 MaskedTensor 高效编写 Adagrad 的“稀疏”语义 (unstable_source/maskedtensor_adagrad.py)

00:00.002

0.0

autograd 保存张量的钩子 (intermediate_source/autograd_saved_tensors_hooks_tutorial.py)

00:00.002

0.0

sphx_glr_beginner_introyt_tensors_deeper_tutorial.py (beginner_source/introyt/tensors_deeper_tutorial.py)

00:00.002

0.0

(beta) 使用 LR 调度器运行已编译的优化器 (recipes_source/compiling_optimizer_lr_scheduler.py)

00:00.002

0.0

torch.autograd 简易入门 (beginner_source/blitz/autograd_tutorial.py)

00:00.002

0.0

高级:动态决策与 Bi-LSTM CRF (beginner_source/nlp/advanced_tutorial.py)

00:00.002

0.0

torch.vmap (unstable_source/vmap_recipe.py)

00:00.002

0.0

模型集成 (intermediate_source/ensembling.py)

00:00.002

0.0

sphx_glr_beginner_onnx_onnx_registry_tutorial.py (beginner_source/onnx/onnx_registry_tutorial.py)

00:00.002

0.0

如何通过将优化器步骤融合到反向传播中来节省内存 (intermediate_source/optimizer_step_in_backward_tutorial.py)

00:00.002

0.0

使用 foreach_map 和 torch.compile 进行显式水平融合 (recipes_source/foreach_map.py)

00:00.002

0.0

编写自定义数据集、数据加载器和转换 (beginner_source/data_loading_tutorial.py)

00:00.002

0.0

词嵌入:编码词汇语义 (beginner_source/nlp/word_embeddings_tutorial.py)

00:00.002

0.0

sphx_glr_beginner_basics_tensorqs_tutorial.py (beginner_source/basics/tensorqs_tutorial.py)

00:00.002

0.0

sphx_glr_beginner_introyt_autogradyt_tutorial.py (beginner_source/introyt/autogradyt_tutorial.py)

00:00.002

0.0

参数化教程 (intermediate_source/parametrizations.py)

00:00.002

0.0

强化学习 (DQN) 教程 (intermediate_source/reinforcement_q_learning.py)

00:00.002

0.0

自定义 Python 算子 (advanced_source/python_custom_ops.py)

00:00.002

0.0

sphx_glr_beginner_onnx_export_simple_model_to_onnx_tutorial.py (beginner_source/onnx/export_simple_model_to_onnx_tutorial.py)

00:00.002

0.0

神经正切核 (intermediate_source/neural_tangent_kernels.py)

00:00.002

0.0

从零开始学自然语言处理:使用字符级 RNN 对名字进行分类 (intermediate_source/char_rnn_classification_tutorial.py)

00:00.002

0.0

逐样本梯度 (intermediate_source/per_sample_grads.py)

00:00.002

0.0

使用自定义函数融合卷积和批归一化 (intermediate_source/custom_function_conv_bn_tutorial.py)

00:00.002

0.0

摆锤:使用 TorchRL 编写您的环境和变换 (advanced_source/pendulum.py)

00:00.002

0.0

使用 Ax 进行多目标神经架构搜索 (intermediate_source/ax_multiobjective_nas_tutorial.py)

00:00.002

0.0

从检查点加载 nn.Module 的技巧 (recipes_source/recipes/module_load_state_dict_tips.py)

00:00.002

0.0

(beta) 将 Torch Function 模式与 torch.compile 结合使用 (recipes_source/torch_compile_torch_function_modes.py)

00:00.002

0.0

从零开始学自然语言处理:使用序列到序列网络和注意力进行翻译 (intermediate_source/seq2seq_translation_tutorial.py)

00:00.002

0.0

(beta) 将 TORCH_LOGS python API 与 torch.compile 结合使用 (recipes_source/torch_logs.py)

00:00.002

0.0

剪枝教程 (intermediate_source/pruning_tutorial.py)

00:00.002

0.0

可选:数据并行 (beginner_source/blitz/data_parallel_tutorial.py)

00:00.002

0.0

MaskedTensor 稀疏性 (unstable_source/maskedtensor_sparsity.py)

00:00.002

0.0

使用 Ray Tune 进行超参数调优 (beginner_source/hyperparameter_tuning_tutorial.py)

00:00.002

0.0

MaskedTensor 高级语义 (unstable_source/maskedtensor_advanced_semantics.py)

00:00.002

0.0

模板教程 (beginner_source/template_tutorial.py)

00:00.002

0.0

使用 NumPy 和 SciPy 创建扩展 (advanced_source/numpy_extensions_tutorial.py)

00:00.002

0.0

sphx_glr_beginner_basics_optimization_tutorial.py (beginner_source/basics/optimization_tutorial.py)

00:00.002

0.0

sphx_glr_beginner_basics_autogradqs_tutorial.py (beginner_source/basics/autogradqs_tutorial.py)

00:00.002

0.0

通过区域编译减少 torch.compile 的冷启动编译时间 (recipes_source/regional_compilation.py)

00:00.002

0.0

sphx_glr_beginner_introyt_modelsyt_tutorial.py (beginner_source/introyt/modelsyt_tutorial.py)

00:00.002

0.0

将用户定义的 Triton 内核与 torch.compile 结合使用 (recipes_source/torch_compile_user_defined_triton_kernel_tutorial.py)

00:00.002

0.0

(beta) 使用 FX 构建一个简单的 CPU 性能分析器 (intermediate_source/fx_profiling_tutorial.py)

00:00.002

0.0

torch.export AOTInductor Python 运行时教程 (Beta) (recipes_source/torch_export_aoti_python.py)

00:00.002

0.0

sphx_glr_beginner_basics_transforms_tutorial.py (beginner_source/basics/transforms_tutorial.py)

00:00.002

0.0

PyTorch: nn (beginner_source/examples_nn/polynomial_nn.py)

00:00.002

0.0

更改默认设备 (recipes_source/recipes/changing_default_device.py)

00:00.002

0.0

nn.Module 中用于 load_state_dict 和张量子类的扩展点 (recipes_source/recipes/swap_tensors.py)

00:00.002

0.0

PyTorch: 张量 (beginner_source/examples_tensor/polynomial_tensor.py)

00:00.002

0.0

在 PyTorch 中对形状进行推理 (recipes_source/recipes/reasoning_about_shapes.py)

00:00.002

0.0

sphx_glr_beginner_basics_buildmodel_tutorial.py (beginner_source/basics/buildmodel_tutorial.py)

00:00.002

0.0

sphx_glr_beginner_basics_saveloadrun_tutorial.py (beginner_source/basics/saveloadrun_tutorial.py)

00:00.002

0.0

sphx_glr_beginner_onnx_export_control_flow_model_to_onnx_tutorial.py (beginner_source/onnx/export_control_flow_model_to_onnx_tutorial.py)

00:00.000

0.0

(beta) 使用半结构化 (2:4) 稀疏性加速 BERT (advanced_source/semi_structured_sparse.py)

00:00.000

0.0

使用基于 PyTorch 构建的 USB 进行半监督学习 (advanced_source/usb_semisup_learn.py)

00:00.000

0.0

sphx_glr_beginner_basics_intro.py (beginner_source/basics/intro.py)

00:00.000

0.0

PyTorch: 张量和 autograd (beginner_source/examples_autograd/polynomial_autograd.py)

00:00.000

0.0

PyTorch: 定义新的 autograd 函数 (beginner_source/examples_autograd/polynomial_custom_function.py)

00:00.000

0.0

PyTorch: 控制流 + 权重共享 (beginner_source/examples_nn/dynamic_net.py)

00:00.000

0.0

PyTorch: 自定义 nn 模块 (beginner_source/examples_nn/polynomial_module.py)

00:00.000

0.0

PyTorch: optim (beginner_source/examples_nn/polynomial_optim.py)

00:00.000

0.0

sphx_glr_beginner_introyt_captumyt.py (beginner_source/introyt/captumyt.py)

00:00.000

0.0

sphx_glr_beginner_introyt_introyt_index.py (beginner_source/introyt/introyt_index.py)

00:00.000

0.0

sphx_glr_beginner_onnx_intro_onnx.py (beginner_source/onnx/intro_onnx.py)

00:00.000

0.0

分析您的 PyTorch 模块 (beginner_source/profiler.py)

00:00.000

0.0

保存和加载模型 (beginner_source/saving_loading_models.py)

00:00.000

0.0

循环 DQN:训练循环策略 (intermediate_source/dqn_with_rnn_tutorial.py)

00:00.000

0.0

sphx_glr_intermediate_mnist_train_nas.py (intermediate_source/mnist_train_nas.py)

00:00.000

0.0

使用 TensorBoard 的 PyTorch Profiler (intermediate_source/tensorboard_profiler_tutorial.py)

00:00.000

0.0

使用 torch.compile 构建卷积/批归一化融合器 (intermediate_source/torch_compile_conv_bn_fuser.py)

00:00.000

0.0

TorchRec 简介 (intermediate_source/torchrec_intro_tutorial.py)

00:00.000

0.0

使用 Captum 实现模型可解释性 (recipes_source/recipes/Captum_Recipe.py)

00:00.000

0.0

自动混合精度 (recipes_source/recipes/amp_recipe.py)

00:00.000

0.0

语法错误 (recipes_source/recipes/benchmark.py)

00:00.000

0.0

在 PyTorch 中定义神经网络 (recipes_source/recipes/defining_a_neural_network.py)

00:00.000

0.0

PyTorch Profiler (recipes_source/recipes/profiler_recipe.py)

00:00.000

0.0

如何在 PyTorch 中使用 TensorBoard (recipes_source/recipes/tensorboard_with_pytorch.py)

00:00.000

0.0

Timer 快速入门 (recipes_source/recipes/timer_quick_start.py)

00:00.000

0.0

性能调优指南 (recipes_source/recipes/tuning_guide.py)

00:00.000

0.0

在 PyTorch 中使用来自不同模型的参数热启动模型 (recipes_source/recipes/warmstarting_model_using_parameters_from_a_different_model.py)

00:00.000

0.0

PyTorch 中的 state_dict 是什么 (recipes_source/recipes/what_is_state_dict.py)

00:00.000

0.0

在 PyTorch 中将梯度清零 (recipes_source/recipes/zeroing_out_gradients.py)

00:00.000

0.0

(原型) 使用 GPUDirect Storage 加速 torch.save 和 torch.load (unstable_source/gpu_direct_storage.py)

00:00.000

0.0