Skip to content

Commit

Permalink
add num_segments in eri segment_sum
Browse files Browse the repository at this point in the history
  • Loading branch information
hatemhelal committed Oct 8, 2023
1 parent 9c3432e commit c571c6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyscf_ipu/experimental/integrals.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ def eri_basis_sparse(b: Basis):
tree_map(lambda x: jnp.take(x, idx, axis=0), primitives) for idx in indices
]
eris = cijkl * vmap_eri_primitives(*pijkl)
return segment_sum(eris, batch)
return segment_sum(eris, batch, num_segments=count + 1)


def eri_basis(b: Basis):
Expand Down

0 comments on commit c571c6d

Please sign in to comment.