Repository navigation
Matrix batching
It's been pointed out to me that
def A(x):
return matrix @ xis often more efficient than
def A(x):
return einsum("ij,bj->bi", A, x)and so PyConGrad now expects batched matrix right-hand sides, rather than batched vector right-hand sides. It is now the batched vector behavior that can be recovered with a custom backend.