(tensor_list)
| 326 | return source |
| 327 | |
| 328 | def min_(tensor_list): |
| 329 | # return the element-wise min of the tensor list. |
| 330 | x = torch.stack(tensor_list) |
| 331 | mn = x.min(axis=0)[0] |
| 332 | return torch.clamp(mn, min=0) |
| 333 | |
| 334 | def max_(tensor_list): |
| 335 | # return the element-wise max of the tensor list. |
no outgoing calls
no test coverage detected