ONE - On-device Neural Engine
|
Class to run FullyConnected Layer after reshaping input tensor. More...
#include <CLFullyConnectedReshapingLayer.h>
Public Types | |
enum class | KernelType { GENERAL , PREPROCESSED_WEIGHTS } |
Public Member Functions | |
CLFullyConnectedReshapingLayer (std::shared_ptr< IMemoryManager > memory_manager=nullptr) | |
void | configure (const arm_compute::ICLTensor *input, const arm_compute::ICLTensor *weights, const arm_compute::ICLTensor *biases, arm_compute::ICLTensor *output, bool needs_reshape, const arm_compute::TensorShape &reshape, KernelType kernel_type) |
Configure the layer. | |
void | run (void) override |
Run the operation. Must be called after configure(). | |
void | prepare (void) override |
Prepare the operation. | |
Class to run FullyConnected Layer after reshaping input tensor.
Definition at line 35 of file CLFullyConnectedReshapingLayer.h.
|
strong |
Enumerator | |
---|---|
GENERAL | |
PREPROCESSED_WEIGHTS |
Definition at line 38 of file CLFullyConnectedReshapingLayer.h.
|
inline |
Definition at line 45 of file CLFullyConnectedReshapingLayer.h.
void CLFullyConnectedReshapingLayer::configure | ( | const arm_compute::ICLTensor * | input, |
const arm_compute::ICLTensor * | weights, | ||
const arm_compute::ICLTensor * | biases, | ||
arm_compute::ICLTensor * | output, | ||
bool | needs_reshape, | ||
const arm_compute::TensorShape & | reshape, | ||
KernelType | kernel_type | ||
) |
Configure the layer.
[in] | input | The source tensor |
[in] | weights | The tensor that is filled with weight values |
[in] | biases | The tensor that is filled with biase values |
[in] | output | The destination tensor |
[in] | needs_reshape | Whether it needs to be reshaped or not |
[in] | reshape | The tensor shape to be reshaped. Only valid when needs_reshape is true. |
Definition at line 26 of file CLFullyConnectedReshapingLayer.cpp.
References GENERAL, and PREPROCESSED_WEIGHTS.
|
override |
Prepare the operation.
Definition at line 102 of file CLFullyConnectedReshapingLayer.cpp.
|
override |
Run the operation. Must be called after configure().
Definition at line 94 of file CLFullyConnectedReshapingLayer.cpp.
Referenced by package.infer.session::inference().