einsum
문서의 이전 판입니다!
einsum
outerproduct
a1 = np.array([[1, 2, 3], [1, 2, 3]]) a2 = np.array([[1, 2], [1, 2]]) a3 = np.array([[1, 2, 3, 4], [1, 2, 3, 4]]) np.einsum('bi,bj,bk->bijk', a1, a2, a3).reshape(2, -1).shape
einsum.1534832576.txt.gz · 마지막으로 수정됨: 2024/03/23 02:37 (바깥 편집)