torch中的unsqueeze()函数来增加一个维度,expand()函数以行或列来广播。[cc]# -*- encoding: utf-8 -*-import torch# 需求是对一个batch_size=2, ...
確定! 回上一頁