-
Notifications
You must be signed in to change notification settings - Fork 256
Coding Style
Chao Liu edited this page Feb 23, 2022
·
19 revisions
- only
index_tandlong_index_tshould be used for index calculation in GPU code,intorlongis not allowed - if integer is used as tensor data, then use
int32_toruint32_tinstead ofintorunsigned
- Class:
ClassName - Class member function:
MemberFunctionName() - Class member variable:
class_member_ - Template argument:
TemplateArgument - Function:
void function_name() - Local variable:
local_variable - Compiler time constant:
kConstant??? - pointer:
p_pointer
- Must add bracket for all
ifandelse