昇腾社区首页
中文
注册

operator==

功能说明

判断参数是否相同。

定义

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
inline bool operator == (const RopeParam &left, const RopeParam &right) 
{
   return left.rotaryCoeff == right.rotaryCoeff && left.cosFormat == right.cosFormat;
}
inline bool operator==(const AllGatherVParam &left, const AllGatherVParam &right)
{
    return left.rank == right.rank && left.rankSize == right.rankSize && left.rankRoot == right.rankRoot &&
           left.hcclComm == right.hcclComm && left.commMode == right.commMode && left.backend == right.backend &&
           left.rankTableFile == right.rankTableFile && left.commDomain == right.commDomain;
}
inline bool operator==(const ReduceScatterVParam &left, const ReduceScatterVParam &right)
{
    return left.rank == right.rank && left.rankSize == right.rankSize && left.rankRoot == right.rankRoot &&
           left.sendCounts == right.sendCounts && left.sdispls == right.sdispls && left.recvCount == right.recvCount &&
           left.reduceType == right.reduceType && left.hcclComm == right.hcclComm && left.commMode == right.commMode &&
           left.backend == right.backend && left.rankTableFile == right.rankTableFile &&
           left.commDomain == right.commDomain;
}
inline bool operator==(const RopeQConcatParam &left, const RopeQConcatParam &right)
{
    (void)left;
    (void)right;
    return true;
}
inline bool operator==(const AllToAllVV2Param &left, const AllToAllVV2Param &right)
{
    return left.rank == right.rank && left.rankSize == right.rankSize && left.rankRoot == right.rankRoot &&
           left.hcclComm == right.hcclComm && left.commMode == right.commMode && left.backend == right.backend &&
           left.rankTableFile == right.rankTableFile && left.commDomain == right.commDomain;
}
inline bool operator==(const SortParam &left, const SortParam &right)
{
    return left.num == right.num;
}
inline bool operator==(const TopkToppSamplingParam &left, const TopkToppSamplingParam &right)
{
    return left.topkToppSamplingType == right.topkToppSamplingType && left.randSeeds == right.randSeeds &&
           left.randSeed == right.randSeed && left.topk == right.topk && left.logProbsSize == right.logProbsSize;
}