Replace all uses of tf.complex_abs with tf.abs.
Change: 142501037
This commit is contained in:
parent
91b9c31f41
commit
9a086bbbdc
BUILDeigen.BUILDfarmhash.BUILDgrpc.BUILDlibxsmm.BUILD
tensorflow/contrib/linalg/python/ops
third_party/llvm
zlib.BUILD@ -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 = [
|
||||
|
@ -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
4699
grpc.BUILD
File diff suppressed because it is too large
Load Diff
@ -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.
|
||||
|
@ -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):
|
||||
|
@ -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)
|
||||
|
||||
|
||||
|
1
third_party/llvm/llvm.BUILD
vendored
1
third_party/llvm/llvm.BUILD
vendored
@ -1935,4 +1935,3 @@ cc_library(
|
||||
":support",
|
||||
],
|
||||
)
|
||||
|
||||
|
@ -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 = ["."],
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user