Returns: the L1 norm.
(self)
| 332 | return self.data.L2() |
| 333 | |
| 334 | def l1(self): |
| 335 | ''' |
| 336 | Returns: |
| 337 | the L1 norm. |
| 338 | ''' |
| 339 | return self.data.L1() |
| 340 | |
| 341 | def set_value(self, x, inplace=True): |
| 342 | '''Set all elements of the tensor to be the give value. |