24 #ifndef ARM_COMPUTE_TEST_GC_HELPER_H 25 #define ARM_COMPUTE_TEST_GC_HELPER_H 63 constexpr
unsigned int num_channels = 1;
88 std::cout << name <<
":" << std::endl;
89 std::cout << s.str().c_str();
Subclass of SimpleTensor using uint8_t as value type.
void map(bool blocking=true)
Map on an allocated buffer.
GCTensor create_tensor(const TensorShape &shape, DataType data_type, int num_channels=1)
Helper to create an empty tensor.
void unmap()
Unmap an allocated and mapped buffer.
Interface for GLES Compute tensor.
TensorShape shape() const override
Shape of the tensor.
Interface for Neon tensor.
Interface for OpenGL ES tensor.
void init(const TensorInfo &input, size_t alignment=0)
Initialize a tensor based on the passed TensorInfo.
Copyright (c) 2017-2021 Arm Limited.
std::unique_ptr< AssetsLibrary > library
ScaleKernelInfo info(interpolation_policy, default_border_mode, PixelValue(), sampling_policy, false)
void print_tensor(ITensor &tensor, const std::string &name, IOFormatInfo info=IOFormatInfo(IOFormatInfo::PrintRegion::Full))
Helper to print tensor.
Store the tensor's metadata.
void print(std::ostream &s, IOFormatInfo io_fmt=IOFormatInfo()) const
Print a tensor to a given stream using user defined formatting information.
DataType
Available data types.
ITensorAllocator * allocator()
Return a pointer to the tensor's allocator.