ONE - On-device Neural Engine
|
Data Structures | |
struct | GatherNdHelperResult |
Functions | |
template<typename T > | |
void | Relu (const RuntimeShape &input_shape, const T *input_data, const RuntimeShape &output_shape, T *output_data) |
template<typename T > | |
void | Relu1 (const RuntimeShape &input_shape, const T *input_data, const RuntimeShape &output_shape, T *output_data) |
void | Relu6 (const RuntimeShape &input_shape, const float *input_data, const RuntimeShape &output_shape, float *output_data) |
template<typename T > | |
void | ReluX (const tflite::ReluParams ¶ms, const RuntimeShape &input_shape, const T *input_data, const RuntimeShape &output_shape, T *output_data) |
template<typename T > | |
void | ReluX (const tflite::ActivationParams ¶ms, const RuntimeShape &input_shape, const T *input_data, const RuntimeShape &output_shape, T *output_data) |
void | BroadcastMulFivefold (const ArithmeticParams &unswitched_params, const RuntimeShape &unswitched_input1_shape, const uint8 *unswitched_input1_data, const RuntimeShape &unswitched_input2_shape, const uint8 *unswitched_input2_data, const RuntimeShape &output_shape, uint8 *output_data) |
void | Mul (const ArithmeticParams ¶ms, const RuntimeShape &input1_shape, const int16 *input1_data, const RuntimeShape &input2_shape, const int16 *input2_data, const RuntimeShape &output_shape, int16 *output_data) |
void | Mul (const ArithmeticParams ¶ms, const RuntimeShape &input1_shape, const int16 *input1_data, const RuntimeShape &input2_shape, const int16 *input2_data, const RuntimeShape &output_shape, uint8 *output_data) |
void | Sub16 (const ArithmeticParams ¶ms, const RuntimeShape &input1_shape, const int16_t *input1_data, const RuntimeShape &input2_shape, const int16_t *input2_data, const RuntimeShape &output_shape, int16_t *output_data) |
template<typename Scalar > | |
void | Pack (const PackParams ¶ms, const RuntimeShape *const *input_shapes, const Scalar *const *input_data, const RuntimeShape &output_shape, Scalar *output_data) |
template<typename Scalar > | |
void | Unpack (const UnpackParams ¶ms, const RuntimeShape &input_shape, const Scalar *input_data, const RuntimeShape &output_shape, Scalar *const *output_datas) |
template<typename Scalar > | |
void | PackWithScaling (const PackParams ¶ms, const RuntimeShape *const *input_shapes, const uint8 *const *input_data, const RuntimeShape &output_shape, uint8 *output_data) |
template<typename Scalar > | |
void | DepthConcatenation (const ConcatenationParams ¶ms, const RuntimeShape *const *input_shapes, const Scalar *const *input_data, const RuntimeShape &output_shape, Scalar *output_data) |
void | LstmCell (const LstmCellParams ¶ms, const RuntimeShape &unextended_input_shape, const float *input_data, const RuntimeShape &unextended_prev_activ_shape, const float *prev_activ_data, const RuntimeShape &weights_shape, const float *weights_data, const RuntimeShape &unextended_bias_shape, const float *bias_data, const RuntimeShape &unextended_prev_state_shape, const float *prev_state_data, const RuntimeShape &unextended_output_state_shape, float *output_state_data, const RuntimeShape &unextended_output_activ_shape, float *output_activ_data, const RuntimeShape &unextended_concat_temp_shape, float *concat_temp_data, const RuntimeShape &unextended_activ_temp_shape, float *activ_temp_data) |
template<int StateIntegerBits> | |
void | LstmCell (const LstmCellParams ¶ms, const RuntimeShape &unextended_input_shape, const uint8 *input_data_uint8, const RuntimeShape &unextended_prev_activ_shape, const uint8 *prev_activ_data_uint8, const RuntimeShape &weights_shape, const uint8 *weights_data_uint8, const RuntimeShape &unextended_bias_shape, const int32 *bias_data_int32, const RuntimeShape &unextended_prev_state_shape, const int16 *prev_state_data_int16, const RuntimeShape &unextended_output_state_shape, int16 *output_state_data_int16, const RuntimeShape &unextended_output_activ_shape, uint8 *output_activ_data_uint8, const RuntimeShape &unextended_concat_temp_shape, uint8 *concat_temp_data_uint8, const RuntimeShape &unextended_activ_temp_shape, int16 *activ_temp_data_int16, void *gemmlowp_context) |
template<typename Scalar > | |
void | Split (const SplitParams ¶ms, const RuntimeShape &input_shape, const Scalar *input_data, const RuntimeShape *const *output_shapes, Scalar *const *output_data) |
int | NodeOffset (int b, int h, int w, int height, int width) |
void | LocalResponseNormalization (const tflite::LocalResponseNormalizationParams &op_params, const RuntimeShape &input_shape, const float *input_data, const RuntimeShape &output_shape, float *output_data) |
void | Dequantize (const RuntimeShape &input_shape, const Eigen::half *input_data, const RuntimeShape &output_shape, float *output_data) |
void | FakeQuant (const tflite::FakeQuantParams &op_params, const RuntimeShape &input_shape, const float *input_data, const RuntimeShape &output_shape, float *output_data) |
GatherNdHelperResult | GatherNdHelper (const RuntimeShape ¶ms_shape, const RuntimeShape &indices_shape) |
template<typename ParamsT , typename IndicesT = int32> | |
void | GatherNd (const RuntimeShape ¶ms_shape, const ParamsT *params_data, const RuntimeShape &indices_shape, const IndicesT *indices_data, const RuntimeShape &output_shape, ParamsT *output_data) |
template<typename IndicesT = int32> | |
void | GatherNdString (const RuntimeShape ¶ms_shape, const TfLiteTensor *params_data, const RuntimeShape &indices_shape, const IndicesT *indices_data, const RuntimeShape &output_shape, TfLiteTensor *output_data) |
template<typename IndicesT , typename UpdatesT > | |
void | ScatterNd (const RuntimeShape &indices_shape, const IndicesT *indices_data, const RuntimeShape &updates_shape, const UpdatesT *updates_data, const RuntimeShape &output_shape, UpdatesT *output_data) |
template<typename T > | |
void | Slice (const tflite::SliceParams &op_params, const RuntimeShape &input_shape, const RuntimeShape &output_shape, SequentialTensorWriter< T > *writer) |
template<typename T > | |
void | Slice (const tflite::SliceParams &op_params, const RuntimeShape &input_shape, const T *input_data, const RuntimeShape &output_shape, T *output_data) |
template<typename T > | |
void | Slice (const tflite::SliceParams &op_params, const RuntimeShape &input_shape, const TfLiteTensor *input, const RuntimeShape &output_shape, TfLiteTensor *output) |
template<typename T > | |
void | Minimum (const RuntimeShape &input1_shape, const T *input1_data, const T *input2_data, const RuntimeShape &output_shape, T *output_data) |
template<typename T > | |
void | Minimum (const RuntimeShape &input1_shape, const T *input1_data, const RuntimeShape &, const T *input2_data, const RuntimeShape &output_shape, T *output_data) |
template<typename T > | |
void | Maximum (const RuntimeShape &input1_shape, const T *input1_data, const T *input2_data, const RuntimeShape &output_shape, T *output_data) |
template<typename T > | |
void | Maximum (const RuntimeShape &input1_shape, const T *input1_data, const RuntimeShape &, const T *input2_data, const RuntimeShape &output_shape, T *output_data) |
template<typename T1 , typename T2 , typename T3 > | |
void | ArgMax (const RuntimeShape &input1_shape, const T1 *input1_data, const T3 *input2_data, const RuntimeShape &output_shape, T2 *output_data) |
template<typename T1 , typename T2 , typename T3 > | |
void | ArgMax (const RuntimeShape &input1_shape, const T1 *input1_data, const RuntimeShape &input2_shape, const T3 *input2_data, const RuntimeShape &output_shape, T2 *output_data) |
template<typename D , typename T > | |
void | Select (const RuntimeShape &input_condition_shape, const D *input_condition_data, const RuntimeShape &input_x_shape, const T *input_x_data, const RuntimeShape &input_y_shape, const T *input_y_data, const RuntimeShape &output_shape, T *output_data) |
template<typename D , typename T > | |
void | RankOneSelect (const RuntimeShape &input_condition_shape, const D *input_condition_data, const RuntimeShape &input_x_shape, const T *input_x_data, const RuntimeShape &input_y_shape, const T *input_y_data, const RuntimeShape &output_shape, T *output_data) |
template<typename D , typename T > | |
void | BroadcastSelect4DSlow (const RuntimeShape &input_condition_shape, const D *input_condition_data, const RuntimeShape &input_x_shape, const T *input_x_data, const RuntimeShape &input_y_shape, const T *input_y_data, const RuntimeShape &output_shape, T *output_data) |
template<typename D , typename T > | |
void | SelectTrueCoords (const RuntimeShape &input_condition_shape, const D *input_condition_data, T *output_data) |
template<typename T , typename TI > | |
void | SparseToDense (const std::vector< std::vector< TI > > &indices, const T *values, T default_value, bool value_is_scalar, const RuntimeShape &unextended_output_shape, T *output_data) |
template<typename T > | |
void | Pow (const RuntimeShape &input1_shape, const T *input1_data, const RuntimeShape &input2_shape, const T *input2_data, const RuntimeShape &output_shape, T *output_data) |
template<typename T > | |
void | BroadcastPow4DSlow (const RuntimeShape &unextended_input1_shape, const T *input1_data, const RuntimeShape &unextended_input2_shape, const T *input2_data, const RuntimeShape &unextended_output_shape, T *output_data) |
template<typename Scalar > | |
void | Reverse (int axis, const RuntimeShape &input_shape, const Scalar *input_data, const RuntimeShape &output_shape, Scalar *output_data) |
template<typename Scalar , typename TS > | |
void | ReverseSequence (const TS *seq_lengths, const int seq_dim, const int batch_dim, const RuntimeShape &input_shape, const Scalar *input_data, const RuntimeShape &output_shape, Scalar *output_data) |
template<typename T > | |
void | SegmentSum (const RuntimeShape &input_shape, const T *input_data, const RuntimeShape &segment_ids_shape, const int32_t *segment_ids_data, const RuntimeShape &output_shape, T *output_data) |
|
inline |
Definition at line 1188 of file PALreference_ops.h.
References ArgMax(), and output_shape.
void tflite::reference_ops::ArgMax | ( | const RuntimeShape & | input1_shape, |
const T1 * | input1_data, | ||
const T3 * | input2_data, | ||
const RuntimeShape & | output_shape, | ||
T2 * | output_data | ||
) |
Definition at line 1179 of file PALreference_ops.h.
References output_shape.
Referenced by ArgMax().
|
inline |
Definition at line 191 of file PALreference_ops.h.
|
inline |
Definition at line 1388 of file PALreference_ops.h.
References desc1, desc2, NdArrayDescsForElementwiseBroadcast(), Offset(), output_shape, and SubscriptToIndex().
void tflite::reference_ops::BroadcastSelect4DSlow | ( | const RuntimeShape & | input_condition_shape, |
const D * | input_condition_data, | ||
const RuntimeShape & | input_x_shape, | ||
const T * | input_x_data, | ||
const RuntimeShape & | input_y_shape, | ||
const T * | input_y_data, | ||
const RuntimeShape & | output_shape, | ||
T * | output_data | ||
) |
Definition at line 1248 of file PALreference_ops.h.
References NdArrayDescsForElementwiseBroadcast(), Offset(), output_shape, and SubscriptToIndex().
void tflite::reference_ops::DepthConcatenation | ( | const ConcatenationParams & | params, |
const RuntimeShape *const * | input_shapes, | ||
const Scalar *const * | input_data, | ||
const RuntimeShape & | output_shape, | ||
Scalar * | output_data | ||
) |
Definition at line 462 of file PALreference_ops.h.
References Concatenation(), and output_shape.
|
inline |
Definition at line 913 of file PALreference_ops.h.
References MatchingFlatSize(), and output_shape.
|
inline |
Definition at line 923 of file PALreference_ops.h.
References MatchingFlatSize(), and output_shape.
|
inline |
Definition at line 985 of file PALreference_ops.h.
References tflite::reference_ops::GatherNdHelperResult::dims_to_count, GatherNdHelper(), tflite::reference_ops::GatherNdHelperResult::indices_nd, tflite::reference_ops::GatherNdHelperResult::n_slices, and tflite::reference_ops::GatherNdHelperResult::slice_size.
|
inline |
Definition at line 955 of file PALreference_ops.h.
References tflite::reference_ops::GatherNdHelperResult::dims_to_count, tflite::reference_ops::GatherNdHelperResult::indices_nd, tflite::reference_ops::GatherNdHelperResult::n_slices, and tflite::reference_ops::GatherNdHelperResult::slice_size.
Referenced by GatherNd(), and GatherNdString().
|
inline |
Definition at line 1006 of file PALreference_ops.h.
References tflite::reference_ops::GatherNdHelperResult::dims_to_count, GatherNdHelper(), tflite::reference_ops::GatherNdHelperResult::indices_nd, tflite::reference_ops::GatherNdHelperResult::n_slices, and tflite::reference_ops::GatherNdHelperResult::slice_size.
|
inline |
Definition at line 887 of file PALreference_ops.h.
References output_shape.
|
inline |
Definition at line 472 of file PALreference_ops.h.
References Concatenation(), FullyConnected(), and Offset().
|
inline |
Definition at line 664 of file PALreference_ops.h.
References Concatenation().
|
inline |
Definition at line 1171 of file PALreference_ops.h.
References Maximum(), and output_shape.
void tflite::reference_ops::Maximum | ( | const RuntimeShape & | input1_shape, |
const T * | input1_data, | ||
const T * | input2_data, | ||
const RuntimeShape & | output_shape, | ||
T * | output_data | ||
) |
Definition at line 1156 of file PALreference_ops.h.
References MatchingFlatSize(), and output_shape.
Referenced by Maximum().
|
inline |
Definition at line 1148 of file PALreference_ops.h.
References Minimum(), and output_shape.
void tflite::reference_ops::Minimum | ( | const RuntimeShape & | input1_shape, |
const T * | input1_data, | ||
const T * | input2_data, | ||
const RuntimeShape & | output_shape, | ||
T * | output_data | ||
) |
Definition at line 1133 of file PALreference_ops.h.
References MatchingFlatSize(), and output_shape.
Referenced by Minimum().
|
inline |
Definition at line 242 of file PALreference_ops.h.
References output_shape.
|
inline |
Definition at line 260 of file PALreference_ops.h.
References output_shape.
|
inline |
Definition at line 882 of file PALreference_ops.h.
void tflite::reference_ops::Pack | ( | const PackParams & | params, |
const RuntimeShape *const * | input_shapes, | ||
const Scalar *const * | input_data, | ||
const RuntimeShape & | output_shape, | ||
Scalar * | output_data | ||
) |
Definition at line 338 of file PALreference_ops.h.
References output_shape.
void tflite::reference_ops::PackWithScaling | ( | const PackParams & | params, |
const RuntimeShape *const * | input_shapes, | ||
const uint8 *const * | input_data, | ||
const RuntimeShape & | output_shape, | ||
uint8 * | output_data | ||
) |
Definition at line 408 of file PALreference_ops.h.
References output_shape.
|
inline |
Definition at line 1376 of file PALreference_ops.h.
References MatchingFlatSize(), and output_shape.
void tflite::reference_ops::RankOneSelect | ( | const RuntimeShape & | input_condition_shape, |
const D * | input_condition_data, | ||
const RuntimeShape & | input_x_shape, | ||
const T * | input_x_data, | ||
const RuntimeShape & | input_y_shape, | ||
const T * | input_y_data, | ||
const RuntimeShape & | output_shape, | ||
T * | output_data | ||
) |
Definition at line 1221 of file PALreference_ops.h.
References MatchingFlatSize(), offset(), and output_shape.
|
inline |
Definition at line 109 of file PALreference_ops.h.
References MatchingFlatSize(), and output_shape.
|
inline |
Definition at line 123 of file PALreference_ops.h.
References MatchingFlatSize(), and output_shape.
|
inline |
Definition at line 138 of file PALreference_ops.h.
References MatchingFlatSize(), and output_shape.
|
inline |
Definition at line 172 of file PALreference_ops.h.
References MatchingFlatSize(), and output_shape.
|
inline |
Definition at line 154 of file PALreference_ops.h.
References MatchingFlatSize(), and output_shape.
void tflite::reference_ops::Reverse | ( | int | axis, |
const RuntimeShape & | input_shape, | ||
const Scalar * | input_data, | ||
const RuntimeShape & | output_shape, | ||
Scalar * | output_data | ||
) |
Definition at line 1423 of file PALreference_ops.h.
void tflite::reference_ops::ReverseSequence | ( | const TS * | seq_lengths, |
const int | seq_dim, | ||
const int | batch_dim, | ||
const RuntimeShape & | input_shape, | ||
const Scalar * | input_data, | ||
const RuntimeShape & | output_shape, | ||
Scalar * | output_data | ||
) |
Definition at line 1454 of file PALreference_ops.h.
|
inline |
Definition at line 1031 of file PALreference_ops.h.
References output_shape.
|
inline |
Definition at line 1547 of file PALreference_ops.h.
References output_shape.
void tflite::reference_ops::Select | ( | const RuntimeShape & | input_condition_shape, |
const D * | input_condition_data, | ||
const RuntimeShape & | input_x_shape, | ||
const T * | input_x_data, | ||
const RuntimeShape & | input_y_shape, | ||
const T * | input_y_data, | ||
const RuntimeShape & | output_shape, | ||
T * | output_data | ||
) |
Definition at line 1197 of file PALreference_ops.h.
References MatchingFlatSize(), and output_shape.
void tflite::reference_ops::SelectTrueCoords | ( | const RuntimeShape & | input_condition_shape, |
const D * | input_condition_data, | ||
T * | output_data | ||
) |
Definition at line 1297 of file PALreference_ops.h.
References size.
|
inline |
Definition at line 1078 of file PALreference_ops.h.
References begin_count, Offset(), and size_count.
|
inline |
Definition at line 1117 of file PALreference_ops.h.
References output_shape, and Slice().
|
inline |
Definition at line 1125 of file PALreference_ops.h.
References output_shape, and Slice().
|
inline |
Definition at line 1336 of file PALreference_ops.h.
References Offset(), and output_shape.
void tflite::reference_ops::Split | ( | const SplitParams & | params, |
const RuntimeShape & | input_shape, | ||
const Scalar * | input_data, | ||
const RuntimeShape *const * | output_shapes, | ||
Scalar *const * | output_data | ||
) |
Definition at line 834 of file PALreference_ops.h.
|
inline |
Definition at line 285 of file PALreference_ops.h.
References output_shape.
void tflite::reference_ops::Unpack | ( | const UnpackParams & | params, |
const RuntimeShape & | input_shape, | ||
const Scalar * | input_data, | ||
const RuntimeShape & | output_shape, | ||
Scalar *const * | output_datas | ||
) |
Definition at line 370 of file PALreference_ops.h.
References output_shape.