Returns: the L1 norm.
(self)
| 303 | return self.data.L2() |
| 304 | |
| 305 | def l1(self): |
| 306 | ''' |
| 307 | Returns: |
| 308 | the L1 norm. |
| 309 | ''' |
| 310 | return self.data.L1() |
| 311 | |
| 312 | def set_value(self, x, inplace=True): |
| 313 | '''Set all elements of the tensor to be the give value. |