Skip to content

How to switch to torch.double for all simulations? #692

Answered by maljoras-sony
maicoldubbio asked this question in Q&A
Discussion options

You must be logged in to vote

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.

option(RPU_USE_DOUBLE "EXPERIMENTAL: Build DOUBLE support" OFF)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@maicoldubbio
Comment options

Answer selected by maicoldubbio
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants