AddClamp Struct Reference#
ck::tensor_operation::element_wise::AddClamp Struct Reference
#include <binary_element_wise_operation.hpp>
Public Member Functions | |
| AddClamp (float floor=0.f, float ceil=NumericLimits< float >::Max()) | |
| template<typename Y, typename X0, typename X1> | |
| __host__ __device__ constexpr void | operator() (Y &y, const X0 &x0, const X1 &x1) const |
| template<> | |
| __host__ __device__ constexpr void | operator() (float &y, const float &x0, const float &x1) const |
| template<> | |
| __host__ __device__ constexpr void | operator() (double &y, const double &x0, const double &x1) const |
| template<> | |
| __host__ __device__ constexpr void | operator() (half_t &y, const half_t &x0, const half_t &x1) const |
| template<> | |
| __host__ __device__ constexpr void | operator() (half_t &y, const float &x0, const half_t &x1) const |
| template<> | |
| __host__ __device__ constexpr void | operator() (float &y, const float &x0, const half_t &x1) const |
| template<> | |
| __host__ __device__ constexpr void | operator() (bhalf_t &y, const float &x0, const bhalf_t &x1) const |
| template<> | |
| __host__ __device__ constexpr void | operator() (bhalf_t &y, const bhalf_t &x0, const bhalf_t &x1) const |
| template<> | |
| __host__ __device__ constexpr void | operator() (int &y, const int &x0, const int8_t &x1) const |
| template<> | |
| __host__ __device__ constexpr void | operator() (int8_t &y, const int8_t &x0, const int8_t &x1) const |
Public Attributes | |
| const float | floor_ |
| const float | ceil_ |
Static Public Attributes | |
| static constexpr const char * | name = "AddClamp" |
Constructor & Destructor Documentation
◆ AddClamp()
|
inline |
Member Function Documentation
◆ operator()() [1/10]
template<>
|
inlineconstexpr |
◆ operator()() [2/10]
template<>
|
inlineconstexpr |
◆ operator()() [3/10]
template<>
|
inlineconstexpr |
◆ operator()() [4/10]
template<>
|
inlineconstexpr |
◆ operator()() [5/10]
template<>
|
inlineconstexpr |
◆ operator()() [6/10]
template<>
|
inlineconstexpr |
◆ operator()() [7/10]
template<>
|
inlineconstexpr |
◆ operator()() [8/10]
template<>
|
inlineconstexpr |
◆ operator()() [9/10]
template<>
|
inlineconstexpr |
◆ operator()() [10/10]
template<typename Y, typename X0, typename X1>
|
constexpr |
Member Data Documentation
◆ ceil_
| const float ck::tensor_operation::element_wise::AddClamp::ceil_ |
◆ floor_
| const float ck::tensor_operation::element_wise::AddClamp::floor_ |
◆ name
|
staticconstexpr |
The documentation for this struct was generated from the following file: