-
Notifications
You must be signed in to change notification settings - Fork 258
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
- Use camel case for all Classes, member function, Template argument.
NameForClass - Use
void function_name() class_member_local_variable
- compiler time constant: ???
- pointer:
p_pointer - class member variable: ``class_member_variable_```
- Must add bracket for all
ifandelse