摘要: import torch import numpy as np """ 创建tensor 1 传入列表 2 传入数组 3 调用api torch.empty() 会用无用数据填充 0 torch.ones() torch.zeros() torch.rand([3,4]) 取0-1 torch.ra 阅读全文
posted @ 2021-03-11 16:40 一笑任逍遥 阅读(42) 评论(0) 推荐(0) 编辑