Replace all uses of tf.complex_abs with tf.abs.

Change: 142501037
This commit is contained in:
A. Unique TensorFlower 2016-12-19 16:41:11 -08:00 committed by TensorFlower Gardener
parent 91b9c31f41
commit 9a086bbbdc
9 changed files with 2342 additions and 2386 deletions

1
BUILD
View File

@ -1 +0,0 @@

View File

@ -9,7 +9,7 @@ licenses([
"notice", # Portions BSD
])
exports_files(["COPYING.MPL2",])
exports_files(["COPYING.MPL2"])
# License-restricted (i.e. not reciprocal or notice) files inside Eigen/...
EIGEN_RESTRICTED_FILES = [

View File

@ -9,15 +9,14 @@ config_setting(
},
)
cc_library(
name = "farmhash",
srcs = ["src/farmhash.cc"],
hdrs = ["src/farmhash.h"],
# Disable __builtin_expect support on Windows
copts = select({
":windows" : ["/DFARMHASH_OPTIONAL_BUILTIN_EXPECT"],
"//conditions:default" : [],
":windows": ["/DFARMHASH_OPTIONAL_BUILTIN_EXPECT"],
"//conditions:default": [],
}),
includes = ["src/."],
visibility = ["//visibility:public"],

4699
grpc.BUILD

File diff suppressed because it is too large Load Diff

View File

@ -2,6 +2,7 @@
# LIBXSMM: Library for small matrix-matrix multiplications targeting Intel Architecture (x86).
licenses(["notice"]) # BSD 3-clause
exports_files(["LICENSE"])
# Arguments to ./scripts/libxsmm_interface.py, see that file for detailed description.

View File

@ -172,11 +172,7 @@ class LinearOperatorMatrix(linear_operator.LinearOperator):
if self._is_spd:
diag = array_ops.matrix_diag_part(self._chol)
return 2 * math_ops.reduce_sum(math_ops.log(diag), reduction_indices=[-1])
if self.dtype.is_complex:
abs_det = math_ops.complex_abs(self.determinant())
else:
abs_det = math_ops.abs(self.determinant())
abs_det = math_ops.abs(self.determinant())
return math_ops.log(abs_det)
def _solve(self, rhs, adjoint=False):

View File

@ -39,14 +39,8 @@ def assert_no_entries_with_modulus_zero(
with ops.name_scope(name, values=[x]):
x = ops.convert_to_tensor(x, name="x")
dtype = x.dtype.base_dtype
if dtype.is_complex:
should_be_nonzero = math_ops.complex_abs(x)
else:
should_be_nonzero = math_ops.abs(x)
should_be_nonzero = math_ops.abs(x)
zero = ops.convert_to_tensor(0, dtype=dtype.real_dtype)
return check_ops.assert_less(zero, should_be_nonzero, message=message)

View File

@ -1935,4 +1935,3 @@ cc_library(
":support",
],
)

View File

@ -32,6 +32,9 @@ cc_library(
"zutil.h",
],
hdrs = ["zlib.h"],
copts = ["-Wno-shift-negative-value", "-Wno-implicit-function-declaration"],
copts = [
"-Wno-shift-negative-value",
"-Wno-implicit-function-declaration",
],
includes = ["."],
)