Data types #2728
Answered
by
laggui
wangjiawen2013
asked this question in
Q&A
Data types
#2728
-
Burn uses various data types, such as usize, u32, f32, f64, are there any common rules to determine which data types are used ? |
Beta Was this translation helpful? Give feedback.
Answered by
laggui
Jan 22, 2025
Replies: 1 comment
-
For unsigned integers, the user-facing API pretty much always uses usize over u32. I think there might be some minor inconsistencies in the |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
wangjiawen2013
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For unsigned integers, the user-facing API pretty much always uses usize over u32.
I think there might be some minor inconsistencies in the
core::nn
structs (some use f32, some f64), though the impact is minimal. You can see which types based on the struct or function signature / usage.