41 const std::array<T, 25> filter{ {
48 const float scale = 1.f / 256.f;
49 for(
int element_idx = 0; element_idx < src.
num_elements(); ++element_idx)
BorderMode
Methods available to handle borders.
void apply_2d_spatial_filter(Coordinates coord, const SimpleTensor< T > &src, SimpleTensor< U > &dst, const TensorShape &filter_shape, const V *filter_itr, double scale, BorderMode border_mode, T constant_border_value=T(0))
DataType data_type() const override
Data type of the tensor.
TensorShape shape() const override
Shape of the tensor.
This file contains all available output stages for GEMMLowp on OpenCL.
SimpleTensor< T > gaussian5x5(const SimpleTensor< T > &src, BorderMode border_mode, T constant_border_value)
Coordinates index2coord(const TensorShape &shape, int index)
Convert a linear index into n-dimensional coordinates.
SimpleTensor< T > scale(const SimpleTensor< T > &in, float scale_x, float scale_y, InterpolationPolicy policy, BorderMode border_mode, T constant_border_value, SamplingPolicy sampling_policy, bool ceil_policy_scale)
Simple tensor object that stores elements in a consecutive chunk of memory.
int num_elements() const override
Number of elements of the tensor.
convolution configure & src