MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / packRhs

Function packRhs

tensorflow/core/kernels/eigen_contraction_kernel.h:632–649  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

630 } \
631 \
632 EIGEN_DEVICE_FUNC EIGEN_DONT_INLINE void packRhs( \
633 RhsBlock* rhsBlock, const typename RhsMapper::SubMapper& data_mapper, \
634 const StorageIndex depth, const StorageIndex cols) { \
635 if (UseCustomContractionKernels()) { \
636 const bool is_direct_access = \
637 DirectRhsAccess::value && \
638 DirectRhsAccess::block(data_mapper, depth, cols, \
639 bm > 0 ? divup(m, bm) : 0, rhsBlock); \
640 \
641 if (!is_direct_access) { \
642 rhsBlock->is_direct_access = false; \
643 RhsPacker()(rhsBlock->packed_data, data_mapper, depth, cols); \
644 } \
645 } else { \
646 rhsBlock->is_direct_access = false; \
647 EigenRhsPacker()(rhsBlock->packed_data, data_mapper, depth, cols); \
648 } \
649 } \
650 \
651 EIGEN_DEVICE_FUNC EIGEN_DONT_INLINE void invoke( \
652 const OutputMapper& output_mapper, const LhsBlock& lhsBlock, \

Callers

nothing calls this directly

Calls 3

blockFunction · 0.85
divupFunction · 0.85

Tested by

no test coverage detected