Skip to content
Open
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
3 changes: 2 additions & 1 deletion code_to_optimize/sample_code.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import numpy as np
import tensorflow as tf
import torch
from jax import lax
from jax import jit, lax


def tridiagonal_solve(a: np.ndarray, b: np.ndarray, c: np.ndarray, d: np.ndarray) -> np.ndarray:
Expand Down Expand Up @@ -128,6 +128,7 @@ def _tridiagonal_back_step_jax(x_next, inputs):
return x_i, x_i


@jit
def tridiagonal_solve_jax(a, b, c, d):
n = b.shape[0]

Expand Down
Loading