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

Method dst

dnn/src/fallback/conv_bias/opr_impl.cpp:814–822  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

812
813template <typename T>
814T* ConvBiasImpl::NCBKernParam::dst(
815 size_t batch_id, size_t group_pack_id, size_t channel_pack_id,
816 size_t group_pack_size, size_t channel_pack_size) const {
817 return reinterpret_cast<T*>(
818 reinterpret_cast<ptrdiff_t>(dst_ptr.get_ptr()) +
819 dst_offset(
820 batch_id, group_pack_id, channel_pack_id, group_pack_size,
821 channel_pack_size));
822}
823
824#define INST(T) \
825 template const T* ConvBiasImpl::NCBKernParam::src<T>( \

Calls 1

get_ptrMethod · 0.80

Tested by

no test coverage detected