Reduce sum the input tensor along the given dim. Parameters ---------- input : Tensor The input tensor. dim : int The reduce dim. keepdims : bool Whether to keep the summed dimension. Returns ------- Tensor A framework-specific tensor
(input, dim, keepdims=False)
| 374 | |
| 375 | |
| 376 | def sum(input, dim, keepdims=False): |
| 377 | """Reduce sum the input tensor along the given dim. |
| 378 | |
| 379 | Parameters |
| 380 | ---------- |
| 381 | input : Tensor |
| 382 | The input tensor. |
| 383 | dim : int |
| 384 | The reduce dim. |
| 385 | keepdims : bool |
| 386 | Whether to keep the summed dimension. |
| 387 | |
| 388 | Returns |
| 389 | ------- |
| 390 | Tensor |
| 391 | A framework-specific tensor. |
| 392 | """ |
| 393 | pass |
| 394 | |
| 395 | |
| 396 | def floor_div(in1, in2): |
no outgoing calls