ONE - On-device Neural Engine
|
Functions | |
inline ::ruy::CachePolicy | ToRuyCachePolicy (CachePolicy cache_policy) |
template<typename Scalar , typename DataPointer > | |
void | MakeRuyMatrix (const MatrixParams< Scalar > ¶ms, DataPointer data_ptr, ::ruy::Matrix< Scalar > *dst, bool use_caching=false) |
template<typename AccumScalar , typename DstScalar , QuantizationFlavor quantization_flavor> | |
void | MakeRuyMulParams (const GemmParams< AccumScalar, DstScalar, quantization_flavor > ¶ms, ::ruy::MulParams< AccumScalar, DstScalar > *ruy_mul_params) |
template<typename DstScalar , QuantizationFlavor quantization_flavor> | |
void | MakeRuyMulParams (const GemmParams< std::int32_t, DstScalar, quantization_flavor > ¶ms, ::ruy::MulParams< std::int32_t, DstScalar > *ruy_mul_params) |
template<QuantizationFlavor quantization_flavor> | |
void | MakeRuyMulParams (const GemmParams< std::int32_t, std::int32_t, quantization_flavor > ¶ms, ::ruy::MulParams< std::int32_t, std::int32_t > *ruy_mul_params) |
void nnfw::ruy::ruy_support::MakeRuyMatrix | ( | const MatrixParams< Scalar > & | params, |
DataPointer | data_ptr, | ||
::ruy::Matrix< Scalar > * | dst, | ||
bool | use_caching = false |
||
) |
Definition at line 51 of file RuySupport.h.
References nnfw::ruy::MatrixParams< Scalar >::cache_policy, nnfw::ruy::MatrixParams< Scalar >::cols, nnfw::ruy::kColMajor, nnfw::ruy::kRowMajor, nnfw::ruy::MatrixParams< Scalar >::order, nnfw::ruy::MatrixParams< Scalar >::rows, ToRuyCachePolicy(), and nnfw::ruy::MatrixParams< Scalar >::zero_point.
Referenced by nnfw::ruy::FullyConnected().
void nnfw::ruy::ruy_support::MakeRuyMulParams | ( | const GemmParams< AccumScalar, DstScalar, quantization_flavor > & | params, |
::ruy::MulParams< AccumScalar, DstScalar > * | ruy_mul_params | ||
) |
Definition at line 69 of file RuySupport.h.
References nnfw::ruy::GemmParams< AccumScalar, DstScalar, quantization_flavor >::bias, nnfw::ruy::GemmParams< AccumScalar, DstScalar, quantization_flavor >::clamp_max, nnfw::ruy::GemmParams< AccumScalar, DstScalar, quantization_flavor >::clamp_min, and nnfw::ruy::kFloatingPoint.
Referenced by nnfw::ruy::FullyConnected().
void nnfw::ruy::ruy_support::MakeRuyMulParams | ( | const GemmParams< std::int32_t, DstScalar, quantization_flavor > & | params, |
::ruy::MulParams< std::int32_t, DstScalar > * | ruy_mul_params | ||
) |
Definition at line 80 of file RuySupport.h.
References nnfw::ruy::GemmParams< AccumScalar, DstScalar, quantization_flavor >::bias, nnfw::ruy::GemmParams< AccumScalar, DstScalar, quantization_flavor >::clamp_max, nnfw::ruy::GemmParams< AccumScalar, DstScalar, quantization_flavor >::clamp_min, nnfw::ruy::kIntegerWithPerRowMultiplier, nnfw::ruy::kIntegerWithUniformMultiplier, nnfw::ruy::GemmParams< AccumScalar, DstScalar, quantization_flavor >::multiplier_exponent, nnfw::ruy::GemmParams< AccumScalar, DstScalar, quantization_flavor >::multiplier_exponent_perchannel, nnfw::ruy::GemmParams< AccumScalar, DstScalar, quantization_flavor >::multiplier_fixedpoint, and nnfw::ruy::GemmParams< AccumScalar, DstScalar, quantization_flavor >::multiplier_fixedpoint_perchannel.
void nnfw::ruy::ruy_support::MakeRuyMulParams | ( | const GemmParams< std::int32_t, std::int32_t, quantization_flavor > & | params, |
::ruy::MulParams< std::int32_t, std::int32_t > * | ruy_mul_params | ||
) |
Definition at line 101 of file RuySupport.h.
References nnfw::ruy::GemmParams< AccumScalar, DstScalar, quantization_flavor >::bias.
inline ::ruy::CachePolicy nnfw::ruy::ruy_support::ToRuyCachePolicy | ( | CachePolicy | cache_policy | ) |
Definition at line 34 of file RuySupport.h.
References nnfw::ruy::kAlwaysCache, nnfw::ruy::kCacheIfLargeSpeedup, and nnfw::ruy::kNeverCache.
Referenced by MakeRuyMatrix().