Commit Graph

14 Commits

Author SHA1 Message Date
A. Unique TensorFlower
b97bf5ae0b Flush denormals to zero in eager mode.
PiperOrigin-RevId: 311364546
Change-Id: I42efa6b19b8193c49bc581879b04ce3d05a13607
2020-05-13 11:10:02 -07:00
A. Unique TensorFlower
f690a054c5 Flush denormals to zero in eager mode.
PiperOrigin-RevId: 311251058
Change-Id: I6ddca2fabc904e8e7400735aaddef361ba0b8778
2020-05-12 19:49:26 -07:00
A. Unique TensorFlower
6d583589fe Flush denormals to zero in eager mode.
PiperOrigin-RevId: 311239051
Change-Id: Iefbc09c82e07af29580319fee024965a2c554378
2020-05-12 18:07:39 -07:00
TensorFlower Gardener
4b794d2d00 Merge pull request from MattConley:DenormalARMDisable
PiperOrigin-RevId: 224219645
2018-12-05 14:31:30 -08:00
Gaurav Jain
24f578cd66 Add @run_deprecated_v1 annotation to tests failing in v2
PiperOrigin-RevId: 223422907
2018-11-29 15:43:25 -08:00
Matt Conley
67e2c47e2f Disable denormal test on ARM until the architecture is supported. 2018-10-24 13:30:35 -07:00
A. Unique TensorFlower
bddb651ed7 Move from deprecated self.test_session() to self.session() or self.cached_session().
Move to cached_session() if the session is create more than once per test. Move to session() otherwise.

self.test_session() has been deprecated in 9962eb5e84 as its name confuses readers of the test. Moving to session() instead which slightly changes the semantic of the function:
* the session is not cached anymore (a new session is created).
* the session is closed when exiting the "with" scope.

PiperOrigin-RevId: 217421579
2018-10-16 18:11:12 -07:00
Shahid
01456a40cd Disable denormal_test on s390x platform ()
* Update denormal_test.py

* Update denormal_test.py
2017-08-21 14:09:20 -07:00
sandipmgiri
349932f440 Disable denormal_test on ppc64le platform () 2017-08-08 15:17:09 -07:00
Geoffrey Irving
a12c7dc3d8 Enable denormal test in open source ()
* Enable denormal test in open source

They seem to work fine; not sure what changed since ages ago.

* Fix denormal flushing on Windows

Since Windows doesn't define __SSE3__, we use EIGEN_VECTORIZE_SSE3 and
set that manually in cmake.
2017-01-24 18:04:34 -08:00
Justine Tunney
5866e065bc Remove hourglass imports from kernel_tests
Change: 142080137
2016-12-14 16:43:13 -08:00
A. Unique TensorFlower
0cf9ed3a71 Update copyright for 3p/tf/python.
Change: 123900456
2016-06-02 13:38:16 -07:00
Geoffrey Irving
d3352e7257 Temporarily disable denormal test for open source
The test is breaking for OSS, and I can't look at it in detail right now.  The
fact that it breaks is harmless (it's equivalent to yesterday), so disable the
test in the open source case for the moment.
Change: 115128265
2016-02-20 10:40:05 -08:00
Geoffrey Irving
fbf6521935 Flush denormals to zero on both CPU and GPU
Two different mechanisms are required.  On the CPU, we push and pop the
appropriate processor flags in the executor (for the master thread) *and*
in each threadpool thread, since the processor flags are thread local.  On
the GPU, we set -ftz=true for both nvcc and gcudacc so that kernels that we
build flush denormals to zero using instruction flags.

Caveat: On GPU, only single precision denormals are flushed to zero; double
precision is unchanged.
Change: 115114845
2016-02-19 20:32:43 -08:00