Пример #1
0
 def _log_abs_determinant(self):
     return self._num_rows_cast_to_real_dtype * math_ops.log(
         math_ops.abs(self.multiplier))
 def _log_abs_determinant(self):
   return math_ops.reduce_sum(
       math_ops.log(math_ops.abs(self._get_diag())), axis=[-1])
Пример #3
0
 def _log_abs_determinant(self):
     axis = [-(i + 1) for i in range(self.block_depth)]
     lad = math_ops.reduce_sum(math_ops.log(math_ops.abs(self.spectrum)),
                               axis=axis)
     return _ops.cast(lad, self.dtype)
Пример #4
0
 def _log_abs_determinant(self):
     log_det = math_ops.reduce_sum(math_ops.log(math_ops.abs(self._diag)),
                                   axis=[-1])
     if np.issubdtype(self.dtype, np.complexfloating):
         log_det = _ops.cast(log_det, dtype=self.dtype)
     return log_det