摘要:
import torch x = torch.randint(2, 3) x1 = torch.cat((x, x), 0) x2 = torch.cat((x, x), 1) print(x) print(x1) print(x2) 结果: x:([[1, 4, 5], [4, 3, 1]]) x 阅读全文
摘要:
官方链接:https://pytorch.org/docs/stable/generated/torch.nn.GRU.html?highlight=gru#torch.nn.GRU 阅读全文
摘要:
哈达玛积(Hadamard product)是矩阵的一类运算,若A=(aij)和B=(bij)是两个同阶矩阵,若cij=aij×bij,则称矩阵C=(cij)为A和B的哈达玛积,或称基本积[1]。 [1] 数学辞海编辑委员会.数学辞海第二卷:中国科学技术出版社,2002 参考:https://bai 阅读全文