08 2024 档案
摘要:1. 环境配置 1.1 anconda配置环境 conda create -n DL_pytorch python=3.11 conda acticvate DL_pytorch conda deactivate conda env list conda remove -n DL_pytorch -
阅读全文
摘要:from __future__ import print_function import torch as t x = t.Tensor(5, 3) # 构建 (5, 3) 的矩阵,只是分配空间,未初始化 print(x) tensor([[1.0194e-38, 8.4490e-39, 1.046
阅读全文
摘要:PyTorch Basics import torch import numpy as np torch.manual_seed(1234) <torch._C.Generator at 0x21fe149e190> Tensors Scalar is a single number. Vector
阅读全文