Relu Struct Reference

Relu Struct Reference#

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

#include <unary_element_wise_operation.hpp>

Public Member Functions

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 bhalf_t &x) const
template<>
__host__ __device__ void operator() (bhalf_t &y, const float &x) const

Static Public Attributes

static constexpr const char * name = "Relu"

Member Function Documentation

◆ operator()() [1/4]

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

◆ operator()() [2/4]

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

◆ operator()() [3/4]

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

◆ operator()() [4/4]

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

Member Data Documentation

◆ name

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

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