查拉图斯特拉你和他

关注

pytorch, torch.ger实例

查拉图斯特拉你和他

关注

阅读 116

2022-07-27


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

tensor([[ 1., 2., 3.],
[ 2., 4., 6.],
[ 3., 6., 9.],
[ 4., 8., 12.]])


相关推荐

木樨点点

Torch SpatialZeroPadding 实例

木樨点点 139 0 0

小月亮06

Torch SpatialAveragePooling 实例

小月亮06 154 0 0

Mezereon

【Pytorch】torch. permute()

Mezereon 124 0 0

眼君

pytorch | with torch.no_grad()

眼君 7 0 0

清冷的蓝天天

Pytorch:torch.nn.Module

清冷的蓝天天 16 0 0

彩虹_bd07

【PyTorch】torch.gather() 用法

彩虹_bd07 45 0 0

爱上流星雨

Pytorch之torch.meshgrid()

爱上流星雨 99 0 0

孟佳

Pytorch:torch.utils.checkpoint()

孟佳 22 0 0

ZGtheGreat

【Pytorch】torch.nn. Softmax()

ZGtheGreat 111 0 0

萍儿的小确幸

pytorch基础: torch.unbind()

萍儿的小确幸 34 0 0

精彩评论(0)

0 0 举报