Skip to content

Commit c0d52dc

Browse files
macos fail
1 parent 43b5569 commit c0d52dc

File tree

2 files changed

+91
-1774
lines changed

2 files changed

+91
-1774
lines changed

tests/scripts/test_all_models.py

+14
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,20 @@ def compile_and_compare(
234234
# Primitive Model Tests
235235

236236

237+
def test_jax():
238+
arr = [1.0, 2.0, 3.0]
239+
backends = [
240+
JaxBackend(dtype=mithril.float16),
241+
JaxBackend(dtype=mithril.float32),
242+
JaxBackend(dtype=mithril.float64),
243+
JaxBackend(dtype=mithril.bfloat16),
244+
]
245+
for backend in backends:
246+
print("Jax Backend: ", backend._dtype)
247+
backend.array(arr)
248+
print("Operation is successful!")
249+
250+
237251
def test_buffer_1():
238252
model = Buffer()
239253
compile_kwargs = {

0 commit comments

Comments
 (0)