Element-wise sum of each of the input tensors Args: l (a list of Tensor): element-wise sum operator Returns: a Tensor for the result
(*l)
| 1142 | |
| 1143 | |
| 1144 | def sum(*l): |
| 1145 | """ |
| 1146 | Element-wise sum of each of the input tensors |
| 1147 | Args: |
| 1148 | l (a list of Tensor): element-wise sum operator |
| 1149 | Returns: |
| 1150 | a Tensor for the result |
| 1151 | """ |
| 1152 | return Sum()(*l)[0] |
| 1153 | |
| 1154 | |
| 1155 | class BinaryCrossEntropy(Operator): |