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

Method deepcopy

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

Same as clone(). Returns: a new Tensor

(self)

Source from the content-addressed store, hash-verified

455 return _call_singa_func(CTensor, self.data)
456
457 def deepcopy(self):
458 '''Same as clone().
459
460 Returns:
461 a new Tensor
462 '''
463 return self.clone()
464
465 def bernoulli(self, p, inplace=True):
466 '''Sample 0/1 for each element according to the given probability.

Callers 2

profiling_train_timeMethod · 0.45
profilingMethod · 0.45

Calls 1

cloneMethod · 0.95

Tested by

no test coverage detected