Skip to content

Commit

Permalink
修正表述,pytorch中矩阵-向量积函数和点积函数不同。 (d2l-ai#1206)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangtuo1999 authored Dec 4, 2022
1 parent 288d581 commit 3e37e2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chapter_preliminaries/linear-algebra.md
Original file line number Diff line number Diff line change
Expand Up @@ -824,7 +824,7 @@ $$
:end_tab:

:begin_tab:`pytorch`
在代码中使用张量表示矩阵-向量积,我们使用与点积相同的`mv`函数。
在代码中使用张量表示矩阵-向量积,我们使用`mv`函数。
当我们为矩阵`A`和向量`x`调用`torch.mv(A, x)`时,会执行矩阵-向量积。
注意,`A`的列维数(沿轴1的长度)必须与`x`的维数(其长度)相同。
:end_tab:
Expand Down

0 comments on commit 3e37e2a

Please sign in to comment.