js_reverse/ayf_ocr/02pytorch基础语法/创建随机张量.py
2023-05-26 13:34:28 +08:00

6 lines
108 B
Python

import torch
# 在100~1000中随机整数
t4 = torch.randint(low=100, high=1000, size=(2, 3, 4))
print(t4)