Activation_Mul2_Clamp< Activation > Struct Template Reference

Activation_Mul2_Clamp&lt; Activation &gt; Struct Template Reference#

Composable Kernel: ck::tensor_operation::element_wise::Activation_Mul2_Clamp< Activation > Struct Template Reference
ck::tensor_operation::element_wise::Activation_Mul2_Clamp< Activation > Struct Template Reference

#include <quantization_operation.hpp>

Public Member Functions

 Activation_Mul2_Clamp (Activation activationOp)
__host__ __device__ constexpr void operator() (int8_t &y, const int32_t &x, const float &requantScale) const
__device__ constexpr void operator() (int32_t &y, const int32_t &x, const float &requantScale) const

Public Attributes

Activation activationOp_

Static Public Attributes

static constexpr const char * name = "Activation_Mul2_Clamp"

Constructor & Destructor Documentation

◆ Activation_Mul2_Clamp()

template<typename Activation>
ck::tensor_operation::element_wise::Activation_Mul2_Clamp< Activation >::Activation_Mul2_Clamp ( Activation activationOp)
inline

Member Function Documentation

◆ operator()() [1/2]

template<typename Activation>
__device__ constexpr void ck::tensor_operation::element_wise::Activation_Mul2_Clamp< Activation >::operator() ( int32_t & y,
const int32_t & x,
const float & requantScale ) const
inlineconstexpr

◆ operator()() [2/2]

template<typename Activation>
__host__ __device__ constexpr void ck::tensor_operation::element_wise::Activation_Mul2_Clamp< Activation >::operator() ( int8_t & y,
const int32_t & x,
const float & requantScale ) const
inlineconstexpr

Member Data Documentation

◆ activationOp_

◆ name

template<typename Activation>
const char* ck::tensor_operation::element_wise::Activation_Mul2_Clamp< Activation >::name = "Activation_Mul2_Clamp"
staticconstexpr

The documentation for this struct was generated from the following file: