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

Method SymCastGrad

tensorflow/core/ops/math_grad_test.cc:109–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107 }
108
109 Tensor SymCastGrad(const Tensor& x, const DataType dst) {
110 Tensor ret;
111 const FDH::Node op_node = {
112 {"y"}, "Cast", {"x"}, {{"SrcT", x.dtype()}, {"DstT", dst}}};
113 TF_CHECK_OK(Unary(op_node, x, dst, &ret));
114 return ret;
115 }
116
117 // Binary
118 void SymGrad(const string& op, const Tensor& x, const Tensor& y, Tensor* dx,

Callers

nothing calls this directly

Calls 2

UnaryFunction · 0.50
dtypeMethod · 0.45

Tested by

no test coverage detected