LeakyRelu Struct Reference

LeakyRelu Struct Reference#

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

#include <unary_element_wise_operation.hpp>

Public Member Functions

 LeakyRelu (float alpha=0.01f)
template<typename T>
__host__ __device__ void operator() (T &y, const T &x) const
template<typename Y, typename X>
__host__ __device__ constexpr void operator() (Y &y, const X &x) const
template<>
__host__ __device__ void operator() (bhalf_t &y, const float &x) const

Public Attributes

const float alpha_

Static Public Attributes

static constexpr const char * name = "LeakyRelu"

Constructor & Destructor Documentation

◆ LeakyRelu()

ck::tensor_operation::element_wise::LeakyRelu::LeakyRelu ( float alpha = 0.01f)
inline

Member Function Documentation

◆ operator()() [1/3]

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

◆ operator()() [2/3]

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

◆ operator()() [3/3]

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

Member Data Documentation

◆ alpha_

const float ck::tensor_operation::element_wise::LeakyRelu::alpha_

◆ name

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

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