How to switch to torch.double for all simulations? #692
-
Hi all! For some simulations with exponentials, we run into small number that are below However I found out this won't change underlying So I looked up: How can I fix it? Does this get all computations ins FP64? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @edminge, Line 21 in 39581ec |
Beta Was this translation helpful? Give feedback.
Hi @edminge,
double support is only experimental. You need to compile the aihwkit again with
-DRPU_USE_DOUBLE=ON
flag to enable it (see ). However, we never had any issues using float as base type, in particular considering that the weights are analog and typically scaled with some digital scale, so the dynamic range of double makes not much sense when simulating noisy conductances.aihwkit/CMakeLists.txt
Line 21 in 39581ec