Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilipVinc committed Oct 29, 2023
1 parent aa8357e commit e4ee419
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion netket/vqs/mc/mc_state/expect_forces_chunked.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ def expect_and_forces_impl( # noqa: F811
*,
mutable: CollectionFilter = False,
) -> tuple[Stats, PyTree]:
print(chunk_size)
print(1, mutable)
chunk_size, grad_chunk_size = chunk_size

Check warning on line 88 in netket/vqs/mc/mc_state/expect_forces_chunked.py

View check run for this annotation

Codecov / codecov/patch

netket/vqs/mc/mc_state/expect_forces_chunked.py#L86-L88

Added lines #L86 - L88 were not covered by tests

σ, args = get_local_kernel_arguments(vstate, )
Expand All @@ -91,6 +93,7 @@ def expect_and_forces_impl( # noqa: F811

, Ō_grad, new_model_state = forces_expect_hermitian_chunked(
chunk_size,
grad_chunk_size,
local_estimator_fun,
vstate._apply_fun,
mutable,
Expand All @@ -106,7 +109,7 @@ def expect_and_forces_impl( # noqa: F811
return , Ō_grad


@partial(jax.jit, static_argnums=(0, 1, 2, 3))
@partial(jax.jit, static_argnums=(0, 1, 2, 3, 4))
def forces_expect_hermitian_chunked(
chunk_size: int,
grad_chunk_size: int,
Expand Down

0 comments on commit e4ee419

Please sign in to comment.