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

Method l1

examples/model_selection/Trails/singa_pkg_code/tensor.py:305–310  ·  view source on GitHub ↗

Returns: the L1 norm.

(self)

Source from the content-addressed store, hash-verified

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.

Callers 1

forwardMethod · 0.45

Calls 1

L1Method · 0.80

Tested by

no test coverage detected