ONE - On-device Neural Engine
|
Class to run FullyConnected Layer after reshaping input tensor. More...
#include <NEFullyConnectedReshapingLayer.h>
Public Types | |
enum class | KernelType { GENERAL , PREPROCESSED_WEIGHTS } |
Public Member Functions | |
NEFullyConnectedReshapingLayer (std::shared_ptr< IMemoryManager > memory_manager=nullptr) | |
void | configure (const arm_compute::ITensor *input, const arm_compute::ITensor *weights, const arm_compute::ITensor *biases, arm_compute::ITensor *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 NEFullyConnectedReshapingLayer.h.
|
strong |
Enumerator | |
---|---|
GENERAL | |
PREPROCESSED_WEIGHTS |
Definition at line 38 of file NEFullyConnectedReshapingLayer.h.
|
inline |
Definition at line 45 of file NEFullyConnectedReshapingLayer.h.
void NEFullyConnectedReshapingLayer::configure | ( | const arm_compute::ITensor * | input, |
const arm_compute::ITensor * | weights, | ||
const arm_compute::ITensor * | biases, | ||
arm_compute::ITensor * | 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. |
[in] | kernel_type | The kernel type for actual FullyConnected layer |
Definition at line 27 of file NEFullyConnectedReshapingLayer.cpp.
References GENERAL, and PREPROCESSED_WEIGHTS.
|
override |
Prepare the operation.
Definition at line 103 of file NEFullyConnectedReshapingLayer.cpp.
|
override |
Run the operation. Must be called after configure().
Definition at line 95 of file NEFullyConnectedReshapingLayer.cpp.
Referenced by package.infer.session::inference().