Skip to content

翻译任务

  • 目前该页面无人翻译,期待你的加入
  • 翻译奖励: https://github.com/orgs/apachecn/discussions/243
  • 任务认领: https://github.com/apachecn/pytorch-doc-zh/discussions/583

请参考这个模版来写内容:

PyTorch 某某页面

译者:片刻小哥哥

项目地址:https://pytorch.apachecn.org/2.0/docs/special

原始地址:https://pytorch.org/docs/stable/special.html

开始写原始页面的翻译内容

注意事项:

  1. 代码参考:
import torch

x = torch.ones(5)  # input tensor
y = torch.zeros(3)  # expected output
w = torch.randn(5, 3, requires_grad=True)
b = torch.randn(3, requires_grad=True)
z = torch.matmul(x, w)+b
loss = torch.nn.functional.binary_cross_entropy_with_logits(z, y)
  1. 公式参考:

1) 无需换行的写法:

\(\sqrt{w^T*w}\)

2) 需要换行的写法:

\[ \sqrt{w^T*w} \]
  1. 图片参考(用图片的实际地址就行):

  1. 翻译完后请删除上面所有模版内容就行

我们一直在努力

apachecn/AiLearning

【布客】中文翻译组