-
Notifications
You must be signed in to change notification settings - Fork 24.7k
Open
Labels
enhancementNot as big of a feature, but technically not a bug. Should be easy to fixNot as big of a feature, but technically not a bug. Should be easy to fixmodule: linear algebraIssues related to specialized linear algebra operations in PyTorch; includes matrix multiply matmulIssues related to specialized linear algebra operations in PyTorch; includes matrix multiply matmultriagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate moduleThis issue has been looked at a team member, and triaged and prioritized into an appropriate module
Description
This is useful for computing an accumulated transition matrix from individual transition matrices:
- First usecase: (BxN1xN2, BxN2xN3, ...) -> BxN1xN3
- Second usecase: (BxTxNxN, dim = 1) -> BxNxN -> this could save an unbind call and maybe a GPU sync (could also be (TxBxNxN, dim = 0) -> BxNxN)
Also may be useful to allow this for logmm in addition to mm:
In the wild this happens in https://github.com/ajabri/videowalk/blob/master/code/model.py#L149 (computing the cycle's total transition matrix)
Originally requested here:
cc @jianyuh @nikitaved @pearu @mruberry @heitorschueroff @walterddr @IvanYashchuk
chester-tan
Metadata
Metadata
Assignees
Labels
enhancementNot as big of a feature, but technically not a bug. Should be easy to fixNot as big of a feature, but technically not a bug. Should be easy to fixmodule: linear algebraIssues related to specialized linear algebra operations in PyTorch; includes matrix multiply matmulIssues related to specialized linear algebra operations in PyTorch; includes matrix multiply matmultriagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate moduleThis issue has been looked at a team member, and triaged and prioritized into an appropriate module