ONE - On-device Neural Engine
|
Functions | |
void | Conv2DInputGrad (const core::FloatConv2D ¶ms, const core::OMRuntimeShape &weight_shape, const float *weight_data, const core::OMRuntimeShape &dloss_doutput_shape, const float *dloss_doutput_data, const core::OMRuntimeShape &dloss_dinput_shape, float *dloss_dinput_data) |
void | Conv2DBiasGrad (const core::OMRuntimeShape &dloss_doutput_shape, const float *dloss_doutput_data, float *dloss_dbias_data) |
void | Conv2DWeightGrad (const core::FloatConv2D ¶ms, const core::OMRuntimeShape &input_shape, const float *input_data, const core::OMRuntimeShape &dloss_doutput_shape, const float *dloss_doutput_data, const core::OMRuntimeShape &dloss_dweight_shape, float *dloss_dweight_data, core::OpTrainableRankType rank) |
void | FullyConnectedInputGrad (const float *dloss_doutput_data, const core::OMRuntimeShape &dloss_doutput_shape, const float *weight_data, const core::OMRuntimeShape &weight_shape, float *dloss_dinput_data) |
void | FullyConnectedWeightGrad (const float *dloss_doutput_data, const core::OMRuntimeShape &dloss_doutput_shape, const float *input_data, const core::OMRuntimeShape &input_shape, float *dloss_dweight_data, const core::OMRuntimeShape &weight_shape, core::OpTrainableRankType rank) |
OMStatus | GRUWeightGrads (const float *output_grad_data, const float *weight_input_data, float *weight_input_grad_data, const float *weight_hidden_data, float *weight_hidden_grad_data, const float *bias_input_data, float *bias_input_grad_data, const float *bias_hidden_data, float *bias_hidden_grad_data, const float *input_data, float *input_grad_data, float *state_grad_data, const core::OMRuntimeShape &input_shape, const core::OMRuntimeShape &output_shape, const core::OMRuntimeShape &weight_input_shape, const core::OMRuntimeShape &weight_hidden_shape, const core::OMRuntimeShape &output_shape_fc, float *intermediate_buffer, float *left_fc_output_grad_buffer, float *right_fc_output_grad_buffer) |
void | MaxPool2D (const core::Pool2DParams ¶ms, const core::OMRuntimeShape &input_shape, const float *input_data, const core::OMRuntimeShape &dloss_doutput_shape, const float *dloss_doutput_data, float *dloss_dinput_data) |
void | ReluInputGrad (const float *input_relu_data, float *dloss_doutput_data, const core::OMRuntimeShape &dloss_doutput_shape) |
void | SoftmaxInputGrad (const float *dloss_doutput_data, const core::OMRuntimeShape &dloss_doutput_shape, const float *calculated_data, float *jacobian_row_data, float *dloss_dinput_data) |
void onert_micro::train::pal::Conv2DBiasGrad | ( | const core::OMRuntimeShape & | dloss_doutput_shape, |
const float * | dloss_doutput_data, | ||
float * | dloss_dbias_data | ||
) |
Definition at line 31 of file PALConv2DWeightGrad.h.
References onert_micro::core::OMRuntimeShape::dimensionsCount(), onert_micro::core::OMRuntimeShape::dims(), onert_micro::core::OMRuntimeShape::flatSize(), and offset().
void onert_micro::train::pal::Conv2DInputGrad | ( | const core::FloatConv2D & | params, |
const core::OMRuntimeShape & | weight_shape, | ||
const float * | weight_data, | ||
const core::OMRuntimeShape & | dloss_doutput_shape, | ||
const float * | dloss_doutput_data, | ||
const core::OMRuntimeShape & | dloss_dinput_shape, | ||
float * | dloss_dinput_data | ||
) |
Definition at line 60 of file PALConv2DInputGrad.h.
References onert_micro::core::FloatConv2D::dilation_height_factor, onert_micro::core::FloatConv2D::dilation_width_factor, onert_micro::core::OMRuntimeShape::dims(), onert_micro::core::OMRuntimeShape::flatSize(), onert_micro::core::FloatConv2D::stride_h, and onert_micro::core::FloatConv2D::stride_w.
void onert_micro::train::pal::Conv2DWeightGrad | ( | const core::FloatConv2D & | params, |
const core::OMRuntimeShape & | input_shape, | ||
const float * | input_data, | ||
const core::OMRuntimeShape & | dloss_doutput_shape, | ||
const float * | dloss_doutput_data, | ||
const core::OMRuntimeShape & | dloss_dweight_shape, | ||
float * | dloss_dweight_data, | ||
core::OpTrainableRankType | rank | ||
) |
Definition at line 58 of file PALConv2DWeightGrad.h.
References onert_micro::core::FloatConv2D::dilation_height_factor, onert_micro::core::FloatConv2D::dilation_width_factor, onert_micro::core::OMRuntimeShape::dims(), onert_micro::core::OMRuntimeShape::flatSize(), onert_micro::execute::pal::getUpLowerWeightTensorDepth(), onert_micro::core::FloatConv2D::stride_h, and onert_micro::core::FloatConv2D::stride_w.
|
inline |
Definition at line 33 of file PALFullyConnectedInputGrad.h.
References onert_micro::core::OMRuntimeShape::dims().
|
inline |
Definition at line 34 of file PALFullyConnectedWeightGrad.h.
References onert_micro::core::OMRuntimeShape::dims(), and onert_micro::execute::pal::getUpLowerWeightTensorDepth().
OMStatus onert_micro::train::pal::GRUWeightGrads | ( | const float * | output_grad_data, |
const float * | weight_input_data, | ||
float * | weight_input_grad_data, | ||
const float * | weight_hidden_data, | ||
float * | weight_hidden_grad_data, | ||
const float * | bias_input_data, | ||
float * | bias_input_grad_data, | ||
const float * | bias_hidden_data, | ||
float * | bias_hidden_grad_data, | ||
const float * | input_data, | ||
float * | input_grad_data, | ||
float * | state_grad_data, | ||
const core::OMRuntimeShape & | input_shape, | ||
const core::OMRuntimeShape & | output_shape, | ||
const core::OMRuntimeShape & | weight_input_shape, | ||
const core::OMRuntimeShape & | weight_hidden_shape, | ||
const core::OMRuntimeShape & | output_shape_fc, | ||
float * | intermediate_buffer, | ||
float * | left_fc_output_grad_buffer, | ||
float * | right_fc_output_grad_buffer | ||
) |
Definition at line 130 of file PALGRUWeightGrad.h.
References luci_interpreter::RuntimeShape::dimensionsCount(), onert_micro::core::OMRuntimeShape::dimensionsCount(), luci_interpreter::RuntimeShape::dims(), onert_micro::core::OMRuntimeShape::dims(), luci_interpreter::RuntimeShape::flatSize(), onert_micro::core::OMRuntimeShape::flatSize(), offset(), onert_micro::Ok, output_shape, onert_micro::core::OMRuntimeShape::setDim(), and onert_micro::UnsupportedType.
|
inline |
Definition at line 33 of file PALMaxPool2DInputGrad.h.
References onert_micro::core::OMRuntimeShape::dims(), onert_micro::core::Pool2DParams::filter_h, onert_micro::core::Pool2DParams::filter_w, onert_micro::core::Pool2DParams::pad_h, onert_micro::core::Pool2DParams::pad_w, onert_micro::core::Pool2DParams::stride_h, and onert_micro::core::Pool2DParams::stride_w.
|
inline |
Definition at line 34 of file PALReluInputGrad.h.
References onert_micro::core::OMRuntimeShape::flatSize().
|
inline |
Definition at line 33 of file PALSoftmaxInputGrad.h.
References onert_micro::core::OMRuntimeShape::dimensionsCount(), and onert_micro::core::OMRuntimeShape::dims().