Commit Graph

9 Commits

Author SHA1 Message Date
Reed
6638b67423 Fix lint errors 2020-08-18 20:34:13 -07:00
Reed
f1c1a294f1 Fix tests when TF32 is enabled 2020-08-13 21:17:36 -07:00
Tres Popp
f6a6128b2e Disable some TF2 incompatible tests from running in v2 mode.
These are all tests under tensorflow/compiler/tests/

PiperOrigin-RevId: 294429998
Change-Id: I2d6615793adea4f21a8492a356324c333b7948b1
2020-02-11 07:03:23 -08:00
Sanjoy Das
6762ca15c4 Change all compiler tests to use self.session
The session returned by cached_session uses soft placement, something we don't
want for XLA_* devices.  With soft placement ops lacking XLA kernels silently
fall back and run on the CPU, misleading us into thinking we have more test
coverage than we actually do.  With this test some tests (rightly) start failing
because they were testing ops with dtypes the XLA kernels do not support.  I've
removed these dtypes from the tests.

This CL partially addresses b/132430685.  It stubs out "cached_session" and
"test_session" to raise errors, so we have more confidence that the compiler is
being exercised.  However, we still use XLA_* devices to exercise XLA, which has
a different code path than xla.compile and tpu.rewrite.  This needs to be
incrementally fixed.

PiperOrigin-RevId: 248437673
2019-05-15 17:32:14 -07:00
A. Unique TensorFlower
cd199a89db Move from deprecated self.test_session() to self.cached_session().
self.test_session() has been deprecated in 9962eb5e84 as its name confuses readers of the test. Moving to cached_session() instead which is more explicit about:
* the fact that the session may be reused.
* the session is not closed even when doing a "with self.test_session()" statement.

PiperOrigin-RevId: 209837298
2018-08-22 15:15:31 -07:00
Peter Hawkins
4eaf597cba [TF:XLA] Add a 2000x2000 test case to Cholesky and QR decomposition tests.
PiperOrigin-RevId: 204943689
2018-07-17 11:30:31 -07:00
A. Unique TensorFlower
6dc9977e1d Import package xla_test instead of class XLATestCase.
PiperOrigin-RevId: 202572322
2018-06-28 17:13:56 -07:00
Jacques Pienaar
7ca4101eac Only test types supported and change log_eps for bfloat16.
PiperOrigin-RevId: 191302894
2018-04-02 09:32:02 -07:00
Peter Hawkins
1ddff94002 [TF:XLA] Add a Cholesky decomposition implementation.
Currently the implementation is fully unrolled, which can cause code size blowups at large matrix sizes. We can explore reducing code size in a subsequent change.

Create a new directory tensorflow/compiler/tf2xla/lib of XLA utility functions. Move batch matmul implementation into the utility directory. Add helpers for batch matmul, triangular solve, and Cholesky decomposition.

PiperOrigin-RevId: 175338698
2017-11-10 16:52:26 -08:00