https://trendynewz.co.uk/argmax-only-supported-for-autoencoderkl/