diff options
Diffstat (limited to 'src/graph/nodes/SoftmaxLayer.cpp')
-rw-r--r-- | src/graph/nodes/SoftmaxLayer.cpp | 26 |
1 files changed, 8 insertions, 18 deletions
diff --git a/src/graph/nodes/SoftmaxLayer.cpp b/src/graph/nodes/SoftmaxLayer.cpp index 9e798ef7cc..86282448f7 100644 --- a/src/graph/nodes/SoftmaxLayer.cpp +++ b/src/graph/nodes/SoftmaxLayer.cpp @@ -23,6 +23,7 @@ */ #include "arm_compute/graph/nodes/SoftmaxLayer.h" +#include "arm_compute/core/Logger.h" #include "arm_compute/runtime/CL/CLTensor.h" #include "arm_compute/runtime/CL/functions/CLSoftmaxLayer.h" #include "arm_compute/runtime/NEON/functions/NESoftmaxLayer.h" @@ -65,33 +66,22 @@ std::unique_ptr<arm_compute::IFunction> SoftmaxLayer::instantiate_node(GraphCont { std::unique_ptr<arm_compute::IFunction> func; _target_hint = ctx.hints().target_hint(); - _input = input; - _output = output; if(_target_hint == TargetHint::OPENCL) { func = instantiate<TargetHint::OPENCL>(input, output); + ARM_COMPUTE_LOG("Instantiating CLSoftmaxLayer"); } else { func = instantiate<TargetHint::NEON>(input, output); + ARM_COMPUTE_LOG("Instantiating NESoftmaxLayer"); } - return func; -} + ARM_COMPUTE_LOG(" Data Type: " << input->info()->data_type() + << " Input shape: " << input->info()->tensor_shape() + << " Output shape: " << output->info()->tensor_shape() + << std::endl); -void SoftmaxLayer::print_info() -{ - if(_target_hint == TargetHint::OPENCL) - { - std::cout << "Instantiating CLSoftmaxLayer"; - } - else - { - std::cout << "Instantiating NESoftmaxLayer"; - } - std::cout << " Data Type: " << _input->info()->data_type() - << " Input shape: " << _input->info()->tensor_shape() - << " Output shape: " << _output->info()->tensor_shape() - << std::endl; + return func; } |