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

Method deepcopy

python/singa/tensor.py:488–494  ·  view source on GitHub ↗

Same as clone(). Returns: a new Tensor

(self)

Source from the content-addressed store, hash-verified

486 return _call_singa_func(CTensor, self.data)
487
488 def deepcopy(self):
489 '''Same as clone().
490
491 Returns:
492 a new Tensor
493 '''
494 return self.clone()
495
496 def bernoulli(self, p, inplace=True):
497 '''Sample 0/1 for each element according to the given probability.

Callers 1

test_tensor_copyMethod · 0.95

Calls 1

cloneMethod · 0.95

Tested by 1

test_tensor_copyMethod · 0.76