39 #if !defined(BARE_METAL) 41 #endif // !defined(BARE_METAL) 82 dst.allocator()->allocate();
89 std::uniform_real_distribution<>
distribution(min_bound, max_bound);
96 #if !defined(BARE_METAL) 117 act_layer_thread0.
configure(&src_t0, &dst_t0, activation_info);
118 act_layer_thread1.
configure(&src_t1, &dst_t1, activation_info);
127 dst_t0.allocator()->allocate();
128 src_t1.allocator()->allocate();
129 dst_t1.allocator()->allocate();
137 std::uniform_real_distribution<>
distribution(min_bound, max_bound);
141 std::thread neon_thread1([&] { act_layer_thread0.
run(); });
142 std::thread neon_thread2([&] { act_layer_thread1.
run(); });
153 const bool match = (*
reinterpret_cast<float *
>(t0_it.
ptr()) == *reinterpret_cast<float *>(t1_it.
ptr()));
158 #endif // !defined(BARE_METAL)
void set_scheduler(IScheduler *scheduler)
CPU Scheduler setter.
1 channel, 1 F32 per channel
ARM_COMPUTE_EXPECT(has_error==expected, framework::LogLevel::ERRORS)
Activation Layer Information class.
void use_tensor_dimensions(const TensorShape &shape, size_t first_dimension=Window::DimX)
Use the tensor's dimensions to fill the window dimensions.
SimpleTensor< float > src
Copyright (c) 2017-2021 Arm Limited.
TensorAllocator * allocator()
Return a pointer to the tensor's allocator.
ITensorInfo * info() const override
Interface to be implemented by the child class to return the tensor's metadata.
virtual bool is_resizable() const =0
Flag indicating whether the size of the tensor can be changed.
Accessor implementation for Tensor objects.
DatasetMode
Possible dataset modes.
std::unique_ptr< AssetsLibrary > library
void run() override
Run the kernels contained in the function.
TEST_SUITE_END() FIXTURE_DATA_TEST_CASE(RunSmall
[CLActivationLayer Test snippet]
static std::unique_ptr< IScheduler > create(Type type=_default_type)
Create a scheduler depending on the scheduler type.
void allocate() override
Allocate size specified by TensorInfo of CPU memory.
constexpr uint8_t * ptr() const
Return a pointer to the current pixel.
Basic implementation of the tensor interface.
TEST_SUITE(U8_to_S8) FIXTURE_DATA_TEST_CASE(RunSmall
std::uniform_real_distribution< float > distribution(-5.f, 5.f)
Configurable scheduler which supports multiple multithreading APIs and choosing between different sch...
Basic function to run cpu::kernels::CpuActivationKernel.
IAssetManager * asset_manager() override
Asset manager accessor.
void configure(ITensor *input, ITensor *output, ActivationLayerInfo activation_info)
[NEActivationLayer snippet]
void execute_window_loop(const Window &w, L &&lambda_function, Ts &&... iterators)
Iterate through the passed window, automatically adjusting the iterators and calling the lambda_funct...
TEST_CASE(FusedActivation, framework::DatasetMode::ALL)
Validate fused activation expecting the following behaviours:
IScheduler * scheduler() override
Scheduler accessor.
Iterator updated by execute_window_loop for each window element.
Describe a multidimensional execution window.