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.
| 69 | // Returns: |
| 70 | // A tensor of dimension [D0, D1], the result fo vec * mat. |
| 71 | Output 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 | |
| 76 | Status SoftmaxCrossEntropyWithLogitsGrad(const Scope& scope, |
| 77 | const Operation& op, |
no test coverage detected