网站首页 站内搜索

搜索结果

查询Tags标签: einsum,共有 3条记录
  • Deep Learning Week1 Notes

    1. Tensors \(\text{A tensor is a generalized matrix:}\) \(\text{an element of }\mathbb{R^3} \text{ is a 3-dimension vector, but its a 1-dimension tensor.}\) \(\large \text{The dimension of a tensor is the number of indices.}\) 2. PyTorch operation @ \…

    2022/4/27 6:12:44 人评论 次浏览
  • Python的torch.einsum方法

    涉及以下内容 简述 爱因斯坦求和约定(einsum)具有简洁优雅的规则,实现包括但不限于:向量内积,向量外积,矩阵乘法,转置和张量收缩等张量操作 例如 a = torch.rand(3, 4),b = torch.rand(4, 5),c = torch.einsum("ik,kj->ij", [a, b]) # einsum 的第一…

    2021/11/14 11:09:47 人评论 次浏览
  • Python的torch.einsum方法

    涉及以下内容 简述 爱因斯坦求和约定(einsum)具有简洁优雅的规则,实现包括但不限于:向量内积,向量外积,矩阵乘法,转置和张量收缩等张量操作 例如 a = torch.rand(3, 4),b = torch.rand(4, 5),c = torch.einsum("ik,kj->ij", [a, b]) # einsum 的第一…

    2021/11/14 11:09:47 人评论 次浏览
扫一扫关注最新编程教程