Scale Struct Reference

Scale Struct Reference#

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

#include <unary_element_wise_operation.hpp>

Public Member Functions

__host__ __device__ Scale (float scale=1.f)
template<typename Y, typename X>
__host__ __device__ void operator() (Y &y, const X &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() (float &y, const float &x) const
template<>
__host__ __device__ void operator() (double &y, const double &x) const
template<>
__host__ __device__ void operator() (int8_t &y, const int8_t &x) const

Public Attributes

float scale_

Static Public Attributes

static constexpr const char * name = "Scale"

Constructor & Destructor Documentation

◆ Scale()

__host__ __device__ ck::tensor_operation::element_wise::Scale::Scale ( float scale = 1.f)
inline

Member Function Documentation

◆ operator()() [1/6]

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

◆ operator()() [2/6]

template<>
__host__ __device__ void ck::tensor_operation::element_wise::Scale::operator() ( double & y,
const double & x ) const
inline

◆ operator()() [3/6]

template<>
__host__ __device__ void ck::tensor_operation::element_wise::Scale::operator() ( float & y,
const float & x ) const
inline

◆ operator()() [4/6]

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

◆ operator()() [5/6]

template<>
__host__ __device__ void ck::tensor_operation::element_wise::Scale::operator() ( int8_t & y,
const int8_t & x ) const
inline

◆ operator()() [6/6]

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

Member Data Documentation

◆ name

const char* ck::tensor_operation::element_wise::Scale::name = "Scale"
staticconstexpr

◆ scale_

float ck::tensor_operation::element_wise::Scale::scale_

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