-
Notifications
You must be signed in to change notification settings - Fork 258
Coding Style
Chao Liu edited this page Feb 23, 2022
·
19 revisions
-
Integer type
- 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
- only
-
Naming style
- Use camel case for all Classes, member function, Template argument.
NameForClass - Use
void function_name() class_member_local_variable
- Use camel case for all Classes, member function, Template argument.
-
Must add bracket for all
ifandelse