24 #ifndef ARM_COMPUTE_TEST_ACTIVATIONLAYERFIXTURE
25 #define ARM_COMPUTE_TEST_ACTIVATIONLAYERFIXTURE
38 template <
typename TensorType,
typename Function,
typename Accessor>
42 template <
typename...>
49 const int fixed_point_position = 4;
50 src = create_tensor<TensorType>(
shape,
data_type, 1, fixed_point_position);
51 dst = create_tensor<TensorType>(
shape,
data_type, 1, fixed_point_position);
54 act_layer.configure(&src, &dst, info);
57 src.allocator()->allocate();
58 dst.allocator()->allocate();
71 src.allocator()->free();
72 dst.allocator()->free();
Activation Layer Information class.
src info() -> set_format(Format::S16)
Accessor implementation for Tensor objects.
std::unique_ptr< AssetsLibrary > library
void set(size_t dimension, size_t value)
Accessor to set the value of one of the dimensions.
void setup(TensorShape shape, ActivationLayerInfo info, DataType data_type, int batches)
unsigned int num_dimensions() const
Returns the effective dimensionality of the tensor.
Fixture that can be used for NEON and CL.
DataType
Available data types.