摘要:
在浏览网页文字时,鼠标放至文字附近,会自动变为光标。 使用以下tempormonkey脚本,取消自动变为光标,仍然显示指针鼠标。 ``` // ==UserScript== // @name No_Cursor // @namespace none // @version 1 // @descrip 阅读全文
摘要:
argmax函数参数dim=0表示从列获取最大值索引,dim=1从行获取最大值索引,dim=-1从最后一个维度获取最大值索引[^argmax参考]。 举例 ```python import torch d = torch.tensor([[9,7,6], [4,8,2], [5,10,0]]) pr 阅读全文
摘要:
torch.sum()维度0,1,2。比如现在有$3\times\ 2\times3$的张量,理解为3个$2\times3$的矩阵。当dim=0,1,2时分别在哪个维度上相加[^文艺数学君]?下面是具体的矩阵 $$ \begin{bmatrix} 1&2&3 \end{bmatrix} $$ $$ 阅读全文