// SPDX-License-Identifier: MIT // Copyright (c) 2018-2023, Advanced Micro Devices, Inc. All rights reserved. #include "common.hpp" using XDataType = ck::half_t; using GammaDataType = ck::half_t; using BetaDataType = ck::half_t; using YDataType = ck::half_t; using SaveMeanInvStdDataType = float; using ComputeDataType = float; using PassThrough = ck::tensor_operation::element_wise::PassThrough; #define SAVE_MEAN_INV_STD constexpr int Rank = 2; constexpr int NumReduceDim = 1; using DeviceInstance = ck::tensor_operation::device::DeviceNormalizationImpl; // SaveMeanInvStdScalarPerVector #include "run_layernorm_example.inc" int main() { return run_groupnorm_example(); }