bartz.mcmcstep.AutoOneHotOrPopcountReduction

class bartz.mcmcstep.AutoOneHotOrPopcountReduction[source]

PopcountReduction on cpu, AutoOneHotReduction on other platforms.

On gpu the one-hot count fuses with the computation of the indices, which the popcount does not. Like PopcountReduction, it supports only counting into a bin range, so it can be used only as count_reduction_config.