Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
# pylint: disable=wrong-import-position
import math
import time
from typing import cast

import h5py
import numpy as np
Expand Down Expand Up @@ -213,7 +214,7 @@ def compute_objective_batched(
lambda_z = jnp.sum(jnp.einsum("jpq->j", 0.5 * jnp.abs(mpq_normalized)) ** 2.0)

res = 0.5 * jnp.sum((jnp.abs(deri)) ** 2) + penalty_param * lambda_z
return float(res)
return cast(float, res)


def prepare_batched_data_indx_arrays(
Expand Down
Loading