2022年9月2日

摘要: torch基础学习二 In [1]: import torch In [2]: # 初始化值x x = torch.randn(3,4,requires_grad=True) x Out[2]: tensor([[ 0.0687, 1.3774, -0.6309, 1.8103], [-0.1166 阅读全文

posted @ 2022-09-02 10:55 cc小张 阅读(28) 评论(0) 推荐(0)

摘要: pytorch基础 In [1]: import torch In [2]: # 查询torch版本 print(torch.__version__) 1.11.0+cpu In [3]: x = torch.rand(5,3) y = torch.rand(5,3) In [4]: # 矩阵相加 阅读全文

posted @ 2022-09-02 10:12 cc小张 阅读(32) 评论(0) 推荐(0)


博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3