Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MegEngine/MegEngine
/ copy
Method
copy
imperative/python/src/tensor.h:51–51 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
49
~Tensor() = default;
50
51
inline Tensor copy() { return Tensor(imperative::apply(DupTensor(), data())[0]); }
52
53
inline DType dtype() { return *data().dtype(); }
54
inline CompNode comp_node() { return *data().device(); }
Callers
15
load
Method · 0.45
get_oprs_seq
Function · 0.45
find_vars_by_name
Function · 0.45
_build_with_ninja
Function · 0.45
__setstate__
Method · 0.45
replace_container_with_module_container
Function · 0.45
get_module_state
Method · 0.45
__getstate__
Method · 0.45
state_dict
Method · 0.45
_test_optimizer
Function · 0.45
run_index
Function · 0.45
fwd
Function · 0.45
Calls
3
DupTensor
Class · 0.85
Tensor
Class · 0.70
apply
Function · 0.50
Tested by
15
_test_optimizer
Function · 0.36
fwd
Function · 0.36
test_insert_qat_module
Function · 0.36
test_subtensor
Function · 0.36
test_advance_indexing
Function · 0.36
test_mesh_indexing
Function · 0.36
test_batched_mesh_indexing
Function · 0.36
test_advance_indexing_high_level
Function · 0.36
test_qparams
Function · 0.36
test_format
Function · 0.36
_ctc_npy_single_seq
Function · 0.36
test_identity
Function · 0.36