MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / dtype

Method dtype

src/custom/impl/tensor.cpp:455–458  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

453}
454
455DType Tensor::dtype(void) const {
456 auto builtin = TensorImplRef(m_tensor).dtype();
457 return DType(&builtin);
458}
459
460Format Tensor::format(void) const {
461 auto builtin = TensorImplRef(m_tensor).format();

Callers 15

write_tensor_to_fileMethod · 0.45
numerical_diff_pt2Method · 0.45
DEF_IMPLFunction · 0.45
load_tensor_sharedMethod · 0.45
read_into_tensorMethod · 0.45
tensor_to_cFunction · 0.45
init_output_dtypeMethod · 0.45
check_paramMethod · 0.45
scn_do_executeMethod · 0.45

Calls 1

DTypeClass · 0.85

Tested by 15

run_testFunction · 0.36
runFunction · 0.36
TESTFunction · 0.36
TESTFunction · 0.36
TESTFunction · 0.36
TESTFunction · 0.36
TESTFunction · 0.36
TESTFunction · 0.36
TESTFunction · 0.36
TEST_PASSFunction · 0.36