20 namespace optimizations
25 static void Func(std::unique_ptr<ScopedCpuTensorHandle>& handle)
46 static void Func(std::unique_ptr<ScopedCpuTensorHandle>& handle)
65 template<
typename Converter,
typename Predicate>
76 if (Predicate::Test(layer))
static bool Test(const Layer &layer)
const TensorShape & GetShape() const
static bool Test(const Layer &layer)
void OperateOnConstantTensors(Op op)
static void Func(std::unique_ptr< ScopedCpuTensorHandle > &handle)
Copyright (c) 2020 ARM Limited.
void IgnoreUnused(Ts &&...)
static void Func(std::unique_ptr< ScopedCpuTensorHandle > &handle)
DataType GetDataType() const
static void ConvertFloat32To16(const float *srcFloat32Buffer, size_t numElements, void *dstFloat16Buffer)
Converts a buffer of FP32 values to FP16, and stores in the given dstFloat16Buffer.
A tensor defined by a TensorInfo (shape and data type) and an immutable backing store.
static void ConvertFloat16To32(const void *srcFloat16Buffer, size_t numElements, float *dstFloat32Buffer)
void Run(Graph &graph, Layer &layer) const override
DataType GetDataType() const
unsigned int GetNumElements() const