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

Method sub

imperative/src/impl/physical_tensor.cpp:753–756  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

751}
752
753TensorPtr Tensor::sub(size_t offset, TensorShape shape) {
754 TensorLayout layout(shape, m_dtype);
755 return Tensor::make(m_blob, offset + m_offset, layout);
756}
757
758uint64_t Tensor::get_ready_event() {
759 if (m_produced_at == 0) {

Callers 9

rstripFunction · 0.45
create_unique_nameMethod · 0.45
get_cpu_nameFunction · 0.45
to_contiguous_inplaceMethod · 0.45
dev_tensorMethod · 0.45
apply_on_physical_tensorFunction · 0.45
apply_on_physical_tensorFunction · 0.45
apply_transformationMethod · 0.45

Calls 1

makeFunction · 0.70

Tested by 1

get_cpu_nameFunction · 0.36