Question about torch.nn.Upsample() function

I used torch.nn.Upsample() function to upsample my 5D data, thus I write code in this way :
self.upsample_layer = torch.nn.Upsample(scale_factor=upsample, mode='trilinear', align_corners=True)
However, a warning appears:
WARNING:root: mode trilinear is not implemented yet, take it a zero op
it seems that trilinear mode is not implemented, but it doesn’t make sense.
So What cases this warning? What should I do to resolve it?
Thanks~

Hi,

nn.Upsample has been deprecated. Use torch.nn.functional.interpolate instead.
https://pytorch.org/docs/stable/nn.functional.html#torch.nn.functional.interpolate

Bests