MCPcopy Create free account
hub / github.com/PaddlePaddle/Paddle / reducePacket

Method reducePacket

paddle/phi/kernels/cpu/cum_kernel.cc:200–204  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

198
199 template <typename Packet>
200 EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void reducePacket(const Packet& p,
201 Packet* accum) const {
202 LogSumExp<T> logsumexp;
203 *accum = logsumexp.packetOp(*accum, p);
204 }
205
206 EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE T initialize() const {
207 return Eigen::NumTraits<T>::lowest();

Callers 3

atomicReduceFunction · 0.80

Calls 1

packetOpMethod · 0.80

Tested by

no test coverage detected