ONE - On-device Neural Engine
|
Functions | |
void | BatchMatMul (const BatchMatMulParams ¶ms, const float *lhs_data, const float *rhs_data, float *output_data) |
template<typename T > | |
void | BinaryArithmeticOp (const BinaryArithmeticOpParam ¶ms, const Shape &input1_shape, const T *input1_data, const Shape &input2_shape, const T *input2_data, const Shape &output_shape, T *output_data, const std::function< T(const T &, const T &)> &fn) |
template<> | |
void | BinaryArithmeticOp (const BinaryArithmeticOpParam ¶ms, const Shape &input1_shape, const float *input1_data, const Shape &input2_shape, const float *input2_data, const Shape &output_shape, float *output_data, const std::function< float(const float &, const float &)> &fn) |
template<> | |
void | BinaryArithmeticOp (const BinaryArithmeticOpParam &, const Shape &input1_shape, const bool *input1_data, const Shape &input2_shape, const bool *input2_data, const Shape &output_shape, bool *output_data, const std::function< bool(const bool &, const bool &)> &fn) |
template<> | |
void | BinaryArithmeticOp (const BinaryArithmeticOpParam ¶ms, const Shape &input1_shape, const int64_t *input1_data, const Shape &input2_shape, const int64_t *input2_data, const Shape &output_shape, int64_t *output_data, const std::function< int64_t(const int64_t &, const int64_t &)> &fn) |
template<typename T > | |
std::enable_if_t< is_quant8< T >::value > | BroadcastBinaryArithmeticOpSlow (const BinaryArithmeticOpParam ¶ms, const Shape &input1_shape, const T *input1_data, const Shape &input2_shape, const T *input2_data, const Shape &output_shape, T *output_data, const std::function< T(const BinaryArithmeticOpParam ¶ms, const T &, const T &)> &fn) |
template<typename T > | |
void | BroadcastBinaryArithmeticOpSlow (const BinaryArithmeticOpParam ¶ms, const Shape &input1_shape, const T *input1_data, const Shape &input2_shape, const T *input2_data, const Shape &output_shape, T *output_data, const std::function< T(const T &, const T &)> &fn) |
template<> | |
void | BroadcastBinaryArithmeticOpSlow (const BinaryArithmeticOpParam ¶ms, const Shape &input1_shape, const float *input1_data, const Shape &input2_shape, const float *input2_data, const Shape &output_shape, float *output_data, const std::function< float(const float &, const float &)> &fn) |
template<> | |
void | BroadcastBinaryArithmeticOpSlow (const BinaryArithmeticOpParam &, const Shape &input1_shape, const bool *input1_data, const Shape &input2_shape, const bool *input2_data, const Shape &output_shape, bool *output_data, const std::function< bool(const bool &, const bool &)> &fn) |
template<> | |
void | BroadcastBinaryArithmeticOpSlow (const BinaryArithmeticOpParam ¶ms, const Shape &input1_shape, const int64_t *input1_data, const Shape &input2_shape, const int64_t *input2_data, const Shape &output_shape, int64_t *output_data, const std::function< int64_t(const int64_t &, const int64_t &)> &fn) |
void | Conv (const ConvParams ¶ms, const Shape &input_shape, const float *input_data, const Shape &filter_shape, const float *filter_data, const Shape &bias_shape, const float *bias_data, const Shape &output_shape, float *output_data) |
void | Conv (const ConvParams ¶ms, const Shape &input_shape, const uint8_t *input_data, const Shape &filter_shape, const uint8_t *filter_data, const Shape &bias_shape, const int32_t *bias_data, const Shape &output_shape, uint8_t *output_data) |
template<typename T , bool is_asymmetric> | |
void | Conv (const ConvParams ¶ms, const int32_t *output_multiplier, const int32_t *output_shift, const Shape &input_shape, const T *input_data, const Shape &filter_shape, const T *filter_data, const int32_t *filter_zeropoint, const Shape &bias_shape, const int32_t *bias_data, const Shape &output_shape, T *output_data) |
void | HybridConvPerChannel (const ConvParams ¶ms, float *scaling_factors_ptr, const Shape &input_shape, const int8_t *input_data, const Shape &filter_shape, const int8_t *filter_data, const Shape &bias_shape, const float *bias_data, const Shape &output_shape, float *output_data, const float *per_channel_scale, const int32_t *input_offset) |
void | Softmax (const SoftmaxParams ¶ms, const Shape &input_shape, const float *input_data, const Shape &output_shape, float *output_data) |
template<typename T > | |
void | TransposeImpl (const TransposeParams ¶ms, const Shape &unextended_input_shape, const T *input_data, const Shape &unextended_output_shape, T *output_data) |
template<typename T > | |
void | Transpose (const TransposeParams ¶ms, const Shape &unextended_input_shape, const T *input_data, const Shape &unextended_output_shape, T *output_data) |
|
inline |
Definition at line 32 of file BatchMatMul.h.
References nnfw::cker::BatchMatMulParams::accum_depth, nnfw::cker::BatchMatMulParams::batch_dim0, nnfw::cker::BatchMatMulParams::batch_dim1, nnfw::cker::BatchMatMulParams::batch_dim2, nnfw::cker::BatchMatMulParams::lhs_ext0, nnfw::cker::BatchMatMulParams::lhs_ext1, nnfw::cker::BatchMatMulParams::lhs_ext2, nnfw::cker::BatchMatMulParams::lhs_rows, nnfw::cker::BatchMatMulParams::rhs_cols, nnfw::cker::BatchMatMulParams::rhs_ext0, nnfw::cker::BatchMatMulParams::rhs_ext1, and nnfw::cker::BatchMatMulParams::rhs_ext2.
Referenced by nnfw::cker::BatchMatMul::operator()().
|
inline |
Definition at line 65 of file BinaryArithmeticOps.h.
References nnfw::cker::MatchingElementsSize(), output_shape, and size.
|
inline |
Definition at line 50 of file BinaryArithmeticOps.h.
References nnfw::cker::ActivationFunctionWithMinMax(), nnfw::cker::BinaryArithmeticOpParam::float_activation_max, nnfw::cker::BinaryArithmeticOpParam::float_activation_min, nnfw::cker::MatchingElementsSize(), output_shape, and size.
|
inline |
Definition at line 79 of file BinaryArithmeticOps.h.
References nnfw::cker::ActivationFunctionWithMinMax(), nnfw::cker::BinaryArithmeticOpParam::int64_activation_max, nnfw::cker::BinaryArithmeticOpParam::int64_activation_min, nnfw::cker::MatchingElementsSize(), and output_shape.
|
inline |
Definition at line 35 of file BinaryArithmeticOps.h.
References nnfw::cker::ActivationFunctionWithMinMax(), nnfw::cker::MatchingElementsSize(), output_shape, nnfw::cker::BinaryArithmeticOpParam::quantized_activation_max, and nnfw::cker::BinaryArithmeticOpParam::quantized_activation_min.
Referenced by nnfw::cker::BinaryArithmeticOp(), and nnfw::cker::optimized::Div().
|
inline |
Definition at line 207 of file BinaryArithmeticOps.h.
References desc1, desc2, nnfw::cker::Shape::Dims(), nnfw::cker::NdArrayDescsForElementwiseBroadcast(), nnfw::cker::Offset(), output_shape, and nnfw::cker::SubscriptToIndex().
|
inline |
Definition at line 178 of file BinaryArithmeticOps.h.
References nnfw::cker::ActivationFunctionWithMinMax(), desc1, desc2, nnfw::cker::Shape::Dims(), nnfw::cker::BinaryArithmeticOpParam::float_activation_max, nnfw::cker::BinaryArithmeticOpParam::float_activation_min, nnfw::cker::NdArrayDescsForElementwiseBroadcast(), nnfw::cker::Offset(), output_shape, and nnfw::cker::SubscriptToIndex().
|
inline |
Definition at line 235 of file BinaryArithmeticOps.h.
References nnfw::cker::ActivationFunctionWithMinMax(), desc1, desc2, nnfw::cker::Shape::Dims(), nnfw::cker::BinaryArithmeticOpParam::int64_activation_max, nnfw::cker::BinaryArithmeticOpParam::int64_activation_min, nnfw::cker::NdArrayDescsForElementwiseBroadcast(), nnfw::cker::Offset(), output_shape, and nnfw::cker::SubscriptToIndex().
|
inline |
Definition at line 94 of file BinaryArithmeticOps.h.
References desc1, desc2, nnfw::cker::Shape::Dims(), nnfw::cker::NdArrayDescsForElementwiseBroadcast(), nnfw::cker::Offset(), output_shape, nnfw::cker::BinaryArithmeticOpParam::quantized_activation_max, nnfw::cker::BinaryArithmeticOpParam::quantized_activation_min, and nnfw::cker::SubscriptToIndex().
Referenced by nnfw::cker::optimized::BroadcastAddDispatch(), nnfw::cker::optimized::BroadcastAddDispatch(), nnfw::cker::BroadcastBinaryArithmeticOp(), nnfw::cker::optimized::BroadcastDivDispatch(), nnfw::cker::optimized::BroadcastMulDispatch(), nnfw::cker::optimized::BroadcastMulDispatch(), and nnfw::cker::optimized::BroadcastSubDispatch().
|
inline |
Definition at line 135 of file BinaryArithmeticOps.h.
References desc1, desc2, nnfw::cker::Shape::Dims(), nnfw::cker::NdArrayDescsForElementwiseBroadcast(), nnfw::cker::Offset(), output_shape, nnfw::cker::BinaryArithmeticOpParam::quantized_activation_max, nnfw::cker::BinaryArithmeticOpParam::quantized_activation_min, and nnfw::cker::SubscriptToIndex().
|
inline |
Definition at line 195 of file Conv.h.
References nnfw::cker::ConvParams::dilation_height_factor, nnfw::cker::ConvParams::dilation_width_factor, nnfw::cker::Shape::DimensionsCount(), nnfw::cker::Shape::Dims(), nnfw::cker::PaddingValues::height, nnfw::cker::ConvParams::input_offset, nnfw::cker::MatchingDim(), nnfw::cker::MultiplyByQuantizedMultiplier(), nnfw::cker::Offset(), nnfw::cker::ConvParams::output_offset, output_shape, nnfw::cker::ConvParams::padding_values, nnfw::cker::ConvParams::quantized_activation_max, nnfw::cker::ConvParams::quantized_activation_min, nnfw::cker::ConvParams::stride_height, nnfw::cker::ConvParams::stride_width, and nnfw::cker::PaddingValues::width.
|
inline |
Definition at line 33 of file Conv.h.
References nnfw::cker::ActivationFunctionWithMinMax(), nnfw::cker::ConvParams::dilation_height_factor, nnfw::cker::ConvParams::dilation_width_factor, nnfw::cker::Shape::DimensionsCount(), nnfw::cker::Shape::Dims(), nnfw::cker::ConvParams::float_activation_max, nnfw::cker::ConvParams::float_activation_min, nnfw::cker::PaddingValues::height, nnfw::cker::MatchingDim(), nnfw::cker::Offset(), output_shape, nnfw::cker::ConvParams::padding_values, nnfw::cker::ConvParams::stride_height, nnfw::cker::ConvParams::stride_width, and nnfw::cker::PaddingValues::width.
Referenced by nnfw::cker::Conv::operator()().
|
inline |
Definition at line 109 of file Conv.h.
References nnfw::cker::ConvParams::dilation_height_factor, nnfw::cker::ConvParams::dilation_width_factor, nnfw::cker::Shape::DimensionsCount(), nnfw::cker::Shape::Dims(), nnfw::cker::PaddingValues::height, nnfw::cker::ConvParams::input_offset, nnfw::cker::MatchingDim(), nnfw::cker::MultiplyByQuantizedMultiplier(), nnfw::cker::Offset(), nnfw::cker::ConvParams::output_multiplier, nnfw::cker::ConvParams::output_offset, output_shape, nnfw::cker::ConvParams::output_shift, nnfw::cker::ConvParams::padding_values, nnfw::cker::ConvParams::quantized_activation_max, nnfw::cker::ConvParams::quantized_activation_min, nnfw::cker::ConvParams::stride_height, nnfw::cker::ConvParams::stride_width, nnfw::cker::ConvParams::weights_offset, and nnfw::cker::PaddingValues::width.
|
inline |
Definition at line 314 of file Conv.h.
References nnfw::cker::ActivationFunctionWithMinMax(), nnfw::cker::ConvParams::dilation_height_factor, nnfw::cker::ConvParams::dilation_width_factor, nnfw::cker::Shape::DimensionsCount(), nnfw::cker::Shape::Dims(), nnfw::cker::ConvParams::float_activation_max, nnfw::cker::ConvParams::float_activation_min, nnfw::cker::PaddingValues::height, nnfw::cker::MatchingDim(), nnfw::cker::Offset(), output_shape, nnfw::cker::ConvParams::padding_values, nnfw::cker::ConvParams::stride_height, nnfw::cker::ConvParams::stride_width, and nnfw::cker::PaddingValues::width.
|
inline |
Definition at line 43 of file SoftMax.h.
References nnfw::cker::SoftmaxParams::beta, nnfw::cker::Shape::DimensionsCount(), nnfw::cker::MatchingDim(), nnfw::cker::MatchingFlatSizeSkipDim(), and output_shape.
Referenced by onert::backend::cpu::ops::SoftMaxLayer::softmaxFloat32().
void nnfw::cker::reference::Transpose | ( | const TransposeParams & | params, |
const Shape & | unextended_input_shape, | ||
const T * | input_data, | ||
const Shape & | unextended_output_shape, | ||
T * | output_data | ||
) |
Definition at line 88 of file Transpose.h.
Referenced by nnfw::cker::TransposeImpl().
void nnfw::cker::reference::TransposeImpl | ( | const TransposeParams & | params, |
const Shape & | unextended_input_shape, | ||
const T * | input_data, | ||
const Shape & | unextended_output_shape, | ||
T * | output_data | ||
) |
Definition at line 33 of file Transpose.h.
References nnfw::cker::Shape::DimensionsCount(), nnfw::cker::MatchingDim(), nnfw::cker::Offset(), output_shape, nnfw::cker::TransposeParams::perm, and nnfw::cker::TransposeParams::perm_count.