Commit Graph

8 Commits

Author SHA1 Message Date
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
Gaurav Jain
b17d53c0cd Replace a few calls of Session run with evaluate
In order to support tests running in eager mode we need to avoid
unnecessary use of Sessions in tests. This moves to remove some
of the uses of the `run` function in favor of `evaluate`.

PiperOrigin-RevId: 223009795
2018-11-27 10:09:00 -08:00
Alexandre Passos
f6ce9fd485 Automated rollback of commit 1fdd7c7408
PiperOrigin-RevId: 222434204
2018-11-21 11:14:22 -08:00
Gaurav Jain
1fdd7c7408 Replace a few calls of Session run with evaluate
In order to support tests running in eager mode we need to avoid
unnecessary use of Sessions in tests. This moves to remove some
of the uses of the `run` function in favor of `evaluate`.

PiperOrigin-RevId: 222013881
2018-11-18 20:05:24 -08: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
Vijay Vasudevan
963674de71 More conversions of flags library to argparse.
Add argv to benchmark/main function so they can handle passing
command line arguments.
Change: 144254260
2017-01-11 15:08:53 -08:00
Peter Hawkins
1e67c90e2c Initial open-source release of XLA: Accelerated Linear Algebra.
XLA is a compiler-based linear algebra execution engine that targets CPUs, GPUs and custom accelerators.

XLA is still experimental; we are releasing it early to get the community involved.
Change: 143990941
2017-01-09 12:26:35 -08:00