MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / ComputeMatrix

Method ComputeMatrix

tensorflow/core/kernels/determinant_op.cc:113–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111 }
112
113 void ComputeMatrix(OpKernelContext* context, const ConstMatrixMaps& inputs,
114 MatrixMaps* outputs) final {
115 Scalar sign;
116 const RealScalar log_abs_det = SLogDet(
117 Eigen::Matrix<Scalar, Eigen::Dynamic, Eigen::Dynamic>(inputs[0]),
118 &sign);
119 outputs->at(0)(0, 0) = sign * std::exp(log_abs_det);
120 }
121};
122
123#if GOOGLE_CUDA

Callers

nothing calls this directly

Calls 3

SLogDetFunction · 0.85
expClass · 0.70
atMethod · 0.45

Tested by

no test coverage detected