Skip to content

Commit

Permalink
Referenced hawkinsp's comments in the code.
Browse files Browse the repository at this point in the history
  • Loading branch information
bchetioui committed Jul 21, 2020
1 parent 67509c3 commit 4c3fac6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion jax/experimental/jax2tf/tests/primitives_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,12 @@ def test_qr(self, harness: primitive_harness.Harness):
elif harness.params["dtype"] in [jnp.float32, jnp.float64]:
self.ConvertAndCompare(harness.dyn_fun, *harness.dyn_args_maker(self.rng()),
atol=1e-5, rtol=1e-5)
else: # TODO: figure out why check_compiled=True breaks for complex types.
else:
# TODO: see https://github.com/google/jax/pull/3775#issuecomment-659407824.
# - check_compiled=True breaks for complex types;
# - for now, the performance of the HLO QR implementation called when
# compiling with TF is expected to have worse performance than the
# custom calls made in JAX.
self.ConvertAndCompare(harness.dyn_fun, *harness.dyn_args_maker(self.rng()),
expect_tf_exceptions=True, atol=1e-5, rtol=1e-5)

Expand Down

0 comments on commit 4c3fac6

Please sign in to comment.