python @ 操作符

python的@ 除了用在装饰器上,还可以用在矩阵操作。 效果大概等同于mul。 ea = torch.randn(2,3) eb = torch.randn(3,2) ea.mm(eb) [email protected] 输出结果为: tensor([[-0.4561, 0.5820], [-1.6594, -3.1745]]) tensor([[-0.4561, 0.58
相关文章
相关标签/搜索