Helper method to compute metric’s value and put into the engine. It is automatically attached to the
attach(). If metrics’ value is torch tensor, it is
explicitly sent to CPU device.
Changed in version 0.4.5: metric’s value is put on CPU if torch tensor.