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

Function BroadcastMul

tensorflow/cc/gradients/nn_grad.cc:71–74  ·  view source on GitHub ↗

Multiply after broadcasting vec to match dimensions of mat. Args: vec: A 1-D tensor of dimension [D0] mat: A 2-D tensor of dimesnion [D0, D1] Returns: A tensor of dimension [D0, D1], the result fo vec * mat.

Source from the content-addressed store, hash-verified

69// Returns:
70// A tensor of dimension [D0, D1], the result fo vec * mat.
71Output BroadcastMul(const Scope& scope, const Output& vec, const Output& mat) {
72 auto reshaped = ExpandDims(scope, vec, -1);
73 return Multiply(scope, reshaped, mat);
74}
75
76Status SoftmaxCrossEntropyWithLogitsGrad(const Scope& scope,
77 const Operation& op,

Callers 1

Calls 2

ExpandDimsFunction · 0.50
MultiplyClass · 0.50

Tested by

no test coverage detected