Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MegEngine/MegEngine
/ device
Method
device
src/custom/impl/tensor.cpp:465–468 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
463
}
464
465
Device Tensor::device(void) const {
466
auto builtin = TensorImplRef(m_tensor).comp_node();
467
return Device(&builtin);
468
}
469
470
size_t Tensor::size(void) const {
471
return TensorImplRef(m_tensor).shape().total_nr_elems();
Callers
7
TEST
Function · 0.45
cpu_kernel
Function · 0.45
CustomOpImpl
Method · 0.45
compute
Method · 0.45
get_cuda_runtime_args
Function · 0.45
execute
Method · 0.45
to_param
Method · 0.45
Calls
2
Device
Class · 0.50
comp_node
Method · 0.45
Tested by
2
TEST
Function · 0.36
cpu_kernel
Function · 0.36