UnaryDivide Struct Reference

UnaryDivide Struct Reference#

Composable Kernel: ck::tensor_operation::element_wise::UnaryDivide Struct Reference
ck::tensor_operation::element_wise::UnaryDivide Struct Reference

#include <unary_element_wise_operation.hpp>

Public Member Functions

__host__ __device__ UnaryDivide (const int32_t divider=1)
 
template<typename T >
__host__ __device__ void operator() (T &y, const T &x) const
 
template<>
__host__ __device__ void operator() (half_t &y, const half_t &x) const
 
template<>
__host__ __device__ void operator() (bhalf_t &y, const bhalf_t &x) const
 
template<>
__host__ __device__ void operator() (f8_t &y, const f8_t &x) const
 

Public Attributes

int32_t divider_ = 1
 

Constructor & Destructor Documentation

◆ UnaryDivide()

__host__ __device__ ck::tensor_operation::element_wise::UnaryDivide::UnaryDivide ( const int32_t  divider = 1)
inline

Member Function Documentation

◆ operator()() [1/4]

template<>
__host__ __device__ void ck::tensor_operation::element_wise::UnaryDivide::operator() ( bhalf_t y,
const bhalf_t x 
) const
inline

◆ operator()() [2/4]

template<>
__host__ __device__ void ck::tensor_operation::element_wise::UnaryDivide::operator() ( f8_t y,
const f8_t x 
) const
inline

◆ operator()() [3/4]

template<>
__host__ __device__ void ck::tensor_operation::element_wise::UnaryDivide::operator() ( half_t y,
const half_t x 
) const
inline

◆ operator()() [4/4]

template<typename T >
__host__ __device__ void ck::tensor_operation::element_wise::UnaryDivide::operator() ( T &  y,
const T &  x 
) const
inline

Member Data Documentation

◆ divider_

int32_t ck::tensor_operation::element_wise::UnaryDivide::divider_ = 1

The documentation for this struct was generated from the following file:
  • /home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-composable-kernel/checkouts/docs-6.4.3/include/ck/tensor_operation/gpu/element/unary_element_wise_operation.hpp