Change Softmax on CUDA to use fp32 for denominator when input/output are fp16.
This avoids potential overflow in the denominator, also makes sure accumulation is done in high precision. PiperOrigin-RevId: 189982655
Loading
Please sign in to comment