π Geometric Computer Vision Library for Spatial AI
Python artificial-intelligencecomputer-visiondeep-learninghacktoberfestimage-processingmachine-learningneural-networkpythonpytorchroboticsspatial-ai
Under CPU autocast, kl_div_loss_2d took the logarithm of a float16/bfloat16 pred in half precision before F.kl_div promoted to float32, so two identical bfloat16 heatmaps gave a divergence of about 1e-3 instead of 0, and other values were off by a similar amount. The logarithm is now taken in float32 there, as CUDA and MPS autocast already did. Results outside autocast and on other devices are unchanged.