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

Method shape

src/custom/impl/tensor.cpp:450–453  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

448}
449
450Shape Tensor::shape(void) const {
451 auto builtin = TensorImplRef(m_tensor).shape();
452 return Shape(&builtin);
453}
454
455DType Tensor::dtype(void) const {
456 auto builtin = TensorImplRef(m_tensor).dtype();

Callers 15

format_and_printMethod · 0.45
init_extern_paramMethod · 0.45
get_io_infoMethod · 0.45
write_tensor_to_fileMethod · 0.45
numerical_diff_pt2Method · 0.45
DEF_IMPLFunction · 0.45
test_serializer_APlusBFunction · 0.45

Calls

no outgoing calls

Tested by 15

test_serializer_APlusBFunction · 0.36
run_testFunction · 0.36
TESTFunction · 0.36
TESTFunction · 0.36
TESTFunction · 0.36