Commit fe9b4d9a authored by rocking's avatar rocking
Browse files

Rename XSrcVectorDim to XYSrcVectorDim. Because we use same parameter in deviceOp

parent cfce1f11
...@@ -33,7 +33,7 @@ template <typename XDataType, ...@@ -33,7 +33,7 @@ template <typename XDataType,
index_t KThreadClusterSize, index_t KThreadClusterSize,
index_t MThreadSliceSize, index_t MThreadSliceSize,
index_t KThreadSliceSize, index_t KThreadSliceSize,
index_t XSrcVectorDim, index_t XYSrcVectorDim,
index_t XSrcVectorSize, index_t XSrcVectorSize,
index_t GammaSrcVectorSize, index_t GammaSrcVectorSize,
index_t BetaSrcVectorSize, index_t BetaSrcVectorSize,
...@@ -68,7 +68,7 @@ struct DeviceLayernorm : public BaseOperator ...@@ -68,7 +68,7 @@ struct DeviceLayernorm : public BaseOperator
KThreadClusterSize, KThreadClusterSize,
MThreadSliceSize, MThreadSliceSize,
KThreadSliceSize, KThreadSliceSize,
XSrcVectorDim, XYSrcVectorDim,
XSrcVectorSize, XSrcVectorSize,
1>; // YDstVectorSize 1>; // YDstVectorSize
...@@ -118,11 +118,11 @@ struct DeviceLayernorm : public BaseOperator ...@@ -118,11 +118,11 @@ struct DeviceLayernorm : public BaseOperator
KThreadClusterSize, KThreadClusterSize,
MThreadSliceSize, MThreadSliceSize,
KThreadSliceSize, KThreadSliceSize,
XSrcVectorDim, XYSrcVectorDim,
XSrcVectorSize, XSrcVectorSize,
GammaSrcVectorSize, GammaSrcVectorSize,
BetaSrcVectorSize, BetaSrcVectorSize,
XSrcVectorDim, XYSrcVectorDim,
YDstVectorSize, YDstVectorSize,
false>; false>;
...@@ -139,11 +139,11 @@ struct DeviceLayernorm : public BaseOperator ...@@ -139,11 +139,11 @@ struct DeviceLayernorm : public BaseOperator
KThreadClusterSize, KThreadClusterSize,
MThreadSliceSize, MThreadSliceSize,
KThreadSliceSize, KThreadSliceSize,
XSrcVectorDim, XYSrcVectorDim,
XSrcVectorSize, XSrcVectorSize,
GammaSrcVectorSize, GammaSrcVectorSize,
BetaSrcVectorSize, BetaSrcVectorSize,
XSrcVectorDim, XYSrcVectorDim,
YDstVectorSize, YDstVectorSize,
true>; true>;
...@@ -331,7 +331,9 @@ struct DeviceLayernorm : public BaseOperator ...@@ -331,7 +331,9 @@ struct DeviceLayernorm : public BaseOperator
str << "DeviceLayernorm<" << BlockSize << ","; str << "DeviceLayernorm<" << BlockSize << ",";
str << "M_C" << MThreadClusterSize << "_S" << MThreadSliceSize << ","; str << "M_C" << MThreadClusterSize << "_S" << MThreadSliceSize << ",";
str << "K_C" << KThreadClusterSize << "_S" << KThreadSliceSize << ","; str << "K_C" << KThreadClusterSize << "_S" << KThreadSliceSize << ",";
str << "XSrcVectorDim_" << XSrcVectorDim << "_XSrcVectorSize_" << XSrcVectorSize << "_YDstVectorSize_" << YDstVectorSize << ">"; str << "K_C" << KThreadClusterSize << "_S" << KThreadSliceSize << ",";
str << "XYSrcVectorDim_" << XYSrcVectorDim << ",";
str << "VectorSize_X" << XSrcVectorSize << "_Gamma" << GammaSrcVectorSize << "_Beta" << BetaSrcVectorSize << "_Y" << YDstVectorSize << ">";
// clang-format on // clang-format on
return str.str(); return str.str();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment