天天看點

pytorch, torch.ger執行個體

import torch
v1 = torch.arange(1., 5.)
v2 = torch.arange(1., 4.)
print(torch.ger(v1, v2))