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

Method make_proxy

src/core/include/megbrain/tensor.h:534–538  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

532 class RStorage, typename = typename std::enable_if<!std::is_same<
533 TensorStorage, RStorage>::value>::type>
534 static ChainReturnType make_proxy(const TensorND<RStorage>& src) {
535 ChainReturnType ret;
536 ret.reset(TensorStorage::make_proxy(src.storage()), src.layout());
537 return ret;
538 }
539
540 //! similar to HostTensorStorage::proxy_to_default_cpu
541 template <

Callers

nothing calls this directly

Calls 3

storageMethod · 0.80
resetMethod · 0.45
layoutMethod · 0.45

Tested by

no test coverage detected