我可以用 python 内置的 @ 运算符替换 torch.matmul 来进行矩阵乘法吗?请假设我知道 torch.matmul、torch.mm 和许多其他之间的区别。我只是想确保其中有多少可以被 @ 运算符安全地替换,而不牺牲速度或 torch 的一些本机支持。
如果没有什么坏处,我想在未来广泛使用它们。
python machine-learning matrix-multiplication deep-learning pytorch
deep-learning ×1
machine-learning ×1
matrix-multiplication ×1
python ×1
pytorch ×1