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

Method clone

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

Returns: a new Tensor which does deep copy of this tensor

(self)

Source from the content-addressed store, hash-verified

371 raise ValueError("t should be Tensor or numpy array.")
372
373 def clone(self):
374 '''
375 Returns:
376 a new Tensor which does deep copy of this tensor
377 '''
378 return _call_singa_func(self.data.Clone)
379
380 def repeat(self, repeats, axis):
381 '''Repeat data of a tensor

Callers 10

__getitem__Method · 0.95
deepcopyMethod · 0.95
to_hostFunction · 0.45
run_inferenceFunction · 0.45
init_modelFunction · 0.45

Calls 1

_call_singa_funcFunction · 0.70

Tested by

no test coverage detected