Clamp Struct Reference

Clamp Struct Reference#

Composable Kernel: ck_tile::element_wise::Clamp Struct Reference
ck_tile::element_wise::Clamp Struct Reference

#include <unary_element_wise_operation.hpp>

Public Member Functions

CK_TILE_HOST_DEVICE Clamp (float lower=std::numeric_limits< float >::lowest(), float upper=std::numeric_limits< float >::max())
template<typename T>
CK_TILE_HOST_DEVICE constexpr void operator() (T &y, const T &x) const

Public Attributes

float lower_
float upper_

Constructor & Destructor Documentation

◆ Clamp()

CK_TILE_HOST_DEVICE ck_tile::element_wise::Clamp::Clamp ( float lower = std::numeric_limits<float>::lowest(),
float upper = std::numeric_limits<float>::max() )
inline

Member Function Documentation

◆ operator()()

template<typename T>
CK_TILE_HOST_DEVICE constexpr void ck_tile::element_wise::Clamp::operator() ( T & y,
const T & x ) const
inlineconstexpr

Member Data Documentation

◆ lower_

float ck_tile::element_wise::Clamp::lower_

◆ upper_

float ck_tile::element_wise::Clamp::upper_

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