mirror of
https://github.com/ROCm/composable_kernel.git
synced 2026-05-16 02:54:21 +00:00
Add conv fwd/bwd data scale instances, extend bilinear instances (#1178)
* Add conv fwd/bwd data scale instances
* Fix cmake client example file
---------
Co-authored-by: Adam Osewski <19374865+aosewski@users.noreply.github.com>
[ROCm/composable_kernel commit: 285251768e]
This commit is contained in:
@@ -310,6 +310,12 @@ struct Scale
|
||||
y = scale_ * x;
|
||||
};
|
||||
|
||||
template <>
|
||||
__host__ __device__ void operator()<int8_t, int8_t>(int8_t& y, const int8_t& x) const
|
||||
{
|
||||
y = ck::type_convert<int8_t>(scale_ * ck::type_convert<float>(x));
|
||||
};
|
||||
|
||||
float scale_;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user