ClippedRelu Struct Reference

ClippedRelu Struct Reference#

Composable Kernel: ck_tile::element_wise::ClippedRelu Struct Reference
ck_tile::element_wise::ClippedRelu Struct Reference

#include <unary_element_wise_operation.hpp>

Public Member Functions

 ClippedRelu (float alpha=0.f, float beta=1.f)
template<typename T>
CK_TILE_HOST_DEVICE void operator() (T &y, const T &x) const

Public Attributes

const float alpha_
const float beta_

Static Public Attributes

static constexpr const char * name = "ClippedRelu"

Constructor & Destructor Documentation

◆ ClippedRelu()

ck_tile::element_wise::ClippedRelu::ClippedRelu ( float alpha = 0.f,
float beta = 1.f )
inline

Member Function Documentation

◆ operator()()

template<typename T>
CK_TILE_HOST_DEVICE void ck_tile::element_wise::ClippedRelu::operator() ( T & y,
const T & x ) const
inline

Member Data Documentation

◆ alpha_

const float ck_tile::element_wise::ClippedRelu::alpha_

◆ beta_

const float ck_tile::element_wise::ClippedRelu::beta_

◆ name

const char* ck_tile::element_wise::ClippedRelu::name = "ClippedRelu"
staticconstexpr

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