MCPcopy Create free account
hub / github.com/apache/singa / l1

Method l1

python/singa/tensor.py:334–339  ·  view source on GitHub ↗

Returns: the L1 norm.

(self)

Source from the content-addressed store, hash-verified

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.

Callers

nothing calls this directly

Calls 1

L1Method · 0.80

Tested by

no test coverage detected