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

Function ConjugateHelper

tensorflow/cc/gradients/math_grad.cc:47–54  ·  view source on GitHub ↗

Conjugate helper function returns the conjugate of an Output if it is complex valued.

Source from the content-addressed store, hash-verified

45// Conjugate helper function returns the conjugate of an Output if it
46// is complex valued.
47Output ConjugateHelper(const Scope& scope, const Output& out) {
48 DataType dtype = out.type();
49 if (dtype == DT_COMPLEX64 || dtype == DT_COMPLEX128) {
50 return Conj(scope, out);
51 } else {
52 return out;
53 }
54}
55
56// TODO(andydavis) Add control dependencies to gradient functions (as needed).
57

Callers 15

SquareGradFunction · 0.85
ExpGradFunction · 0.85
Expm1GradFunction · 0.85
LogGradFunction · 0.85
Log1pGradFunction · 0.85
SinhGradFunction · 0.85
CoshGradFunction · 0.85
TanhGradFunction · 0.85
AsinhGradFunction · 0.85
AcoshGradFunction · 0.85
AtanhGradFunction · 0.85
SigmoidGradFunction · 0.85

Calls 2

typeMethod · 0.65
ConjFunction · 0.50

Tested by

no test coverage detected