broadcast to ensure returned value shape is compatible with inp
| 49 | |
| 50 | //! broadcast to ensure returned value shape is compatible with inp |
| 51 | static inline SymbolVar broadcast_ensure(SymbolVar value, SymbolVar inp) { |
| 52 | return broadcast_tshp(value, {value, inp}); |
| 53 | } |
| 54 | |
| 55 | // a - a => 0, a / a => 1 |
| 56 | template <int unit> |