Closed cossio closed 2 years ago
This line:
https://github.com/cossio/RestrictedBoltzmannMachines.jl/blob/9456632249d3e33ec39ffe867118f4a77a7adc1e/src/train/initialization.jl#L109
Can result in integer overflow when data is of integer type, particularly for Spin units which are of type Int8. It then will raise an error here:
Int8
https://github.com/cossio/RestrictedBoltzmannMachines.jl/blob/9456632249d3e33ec39ffe867118f4a77a7adc1e/src/train/initialization.jl#L116
because it will try to take the sqrt of a negative number.
This line:
https://github.com/cossio/RestrictedBoltzmannMachines.jl/blob/9456632249d3e33ec39ffe867118f4a77a7adc1e/src/train/initialization.jl#L109
Can result in integer overflow when data is of integer type, particularly for Spin units which are of type
Int8
. It then will raise an error here:https://github.com/cossio/RestrictedBoltzmannMachines.jl/blob/9456632249d3e33ec39ffe867118f4a77a7adc1e/src/train/initialization.jl#L116
because it will try to take the sqrt of a negative number.