Closed AlaaKhaddaj closed 1 year ago
When computing the margins from image_classification task, the default dtype of ch.tensor(-ch.inf) is float32. This leads to a datatype mismatch if the model gradients and output were computed in float16.
image_classification
ch.tensor(-ch.inf)
Great catch, thanks!
When computing the margins from
image_classification
task, the default dtype ofch.tensor(-ch.inf)
is float32. This leads to a datatype mismatch if the model gradients and output were computed in float16.