mirror of
https://github.com/ROCm/composable_kernel.git
synced 2026-04-20 06:49:15 +00:00
Add Doxygen Documentation for HostTesnor, HostTensorDescriptor, DeviceMem, FillUniformDistribution (#2160)
* added documentation for HostTensorDescriptor * added documentation for DeviceMem and FillUniformDistribution * fixed merging error * fixed host_tensor_descriptor error * clang format
This commit is contained in:
@@ -85,6 +85,20 @@ struct FillUniformDistributionIntegerValue
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* @brief A functor for filling a container with a monotonically increasing or decreasing sequence.
|
||||
*
|
||||
* FillMonotonicSeq generates a sequence of values starting from an initial value
|
||||
* and incrementing by a fixed step for each subsequent element.
|
||||
*
|
||||
* @tparam T The numeric type of the sequence elements.
|
||||
*
|
||||
* Example usage:
|
||||
* ```
|
||||
* std::vector<int> v(5);
|
||||
* FillMonotonicSeq<int>{10, 2}(v); // Fills v with {10, 12, 14, 16, 18}
|
||||
* ```
|
||||
*/
|
||||
template <typename T>
|
||||
struct FillMonotonicSeq
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user