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

Function StrictReduceIntArrayAxisInferMeta

paddle/phi/infermeta/unary.cc:4361–4372  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4359}
4360
4361void StrictReduceIntArrayAxisInferMeta(const MetaTensor& x,
4362 const IntArray& axis,
4363 bool keep_dim,
4364 MetaTensor* out,
4365 MetaConfig config) {
4366 bool reduce_all = false;
4367 if (axis.size() == 0) {
4368 reduce_all = true;
4369 }
4370 StrictReduceIntArrayAxisInferMetaBase(
4371 x, axis, keep_dim, reduce_all, out, config);
4372}
4373
4374void ReduceScatterInferMeta(const MetaTensor& x, int nranks, MetaTensor* out) {
4375 auto dim = x.dims();

Callers

nothing calls this directly

Calls 2

sizeMethod · 0.45

Tested by

no test coverage detected