MCPcopy Create free account
hub / github.com/ARM-software/ComputeLibrary / configure

Method configure

src/runtime/NEON/functions/NEArgMinMaxLayer.cpp:58–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56}
57
58void NEArgMinMaxLayer::configure(ITensor *input, int axis, ITensor *output, const ReductionOperation &op)
59{
60 ARM_COMPUTE_TRACE_EVENT(ARM_COMPUTE_PROF_CAT_CPU, ARM_COMPUTE_PROF_LVL_CPU, "NEArgMinMaxLayer::configure");
61 ARM_COMPUTE_LOG_PARAMS(input, axis, output, op);
62 _impl->reduction_function = std::make_unique<NEReductionOperation>();
63 if (output->info() &&
64 (output->info()->data_type() == DataType::S64 || output->info()->data_type() == DataType::U64))
65 {
66 _impl->memory_group = MemoryGroup(std::move(_impl->memory_manager));
67 _impl->cast_function = std::make_unique<NECast>();
68 _impl->tmp_reduction_result = std::make_unique<Tensor>();
69 _impl->reduction_function->configure(input, _impl->tmp_reduction_result.get(), axis, op, false);
70 _impl->cast_function->configure(_impl->tmp_reduction_result.get(), output, ConvertPolicy::SATURATE);
71 _impl->memory_group.manage(_impl->tmp_reduction_result.get());
72 _impl->tmp_reduction_result->allocator()->allocate();
73 }
74 else
75 {
76 _impl->reduction_function->configure(input, output, axis, op, false);
77 }
78}
79
80Status
81NEArgMinMaxLayer::validate(const ITensorInfo *input, int axis, const ITensorInfo *output, const ReductionOperation &op)

Callers

nothing calls this directly

Calls 7

MemoryGroupClass · 0.85
infoMethod · 0.45
data_typeMethod · 0.45
getMethod · 0.45
manageMethod · 0.45
allocateMethod · 0.45
allocatorMethod · 0.45

Tested by

no test coverage detected