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小张 阅读(17) 评论(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小张 阅读(24) 评论(0) 推荐(0) 编辑


Copyright © 2024 cc小张
Powered by .NET 8.0 on Kubernetes