Scale Struct Reference#
ck_tile::element_wise::Scale Struct Reference
#include <unary_element_wise_operation.hpp>
Public Member Functions | |
| CK_TILE_HOST_DEVICE | Scale (float scale=1.f) |
| template<typename Y, typename X> | |
| CK_TILE_HOST_DEVICE void | operator() (Y &y, const X &x) const |
| template<> | |
| CK_TILE_HOST_DEVICE void | operator() (ck_tile::fp16_t &y, const ck_tile::fp16_t &x) const |
| template<> | |
| CK_TILE_HOST_DEVICE void | operator() (ck_tile::bf16_t &y, const ck_tile::bf16_t &x) const |
| template<> | |
| CK_TILE_HOST_DEVICE void | operator() (float &y, const float &x) const |
| template<> | |
| CK_TILE_HOST_DEVICE void | operator() (double &y, const double &x) const |
| template<> | |
| CK_TILE_HOST_DEVICE void | operator() (int8_t &y, const int8_t &x) const |
Public Attributes | |
| float | scale_ |
Static Public Attributes | |
| static constexpr const char * | name = "Scale" |
Constructor & Destructor Documentation
◆ Scale()
|
inline |
Member Function Documentation
◆ operator()() [1/6]
template<>
|
inline |
◆ operator()() [2/6]
template<>
|
inline |
◆ operator()() [3/6]
template<>
|
inline |
◆ operator()() [4/6]
template<>
|
inline |
◆ operator()() [5/6]
template<>
|
inline |
◆ operator()() [6/6]
template<typename Y, typename X>
|
inline |
Member Data Documentation
◆ name
|
staticconstexpr |
◆ scale_
| float ck_tile::element_wise::Scale::scale_ |
The documentation for this struct was generated from the following file: