U Pha@s`ddlmZddlmZmZddlZddlmmZ ddl m Z dgZ d ddd d d dZ dS) ) annotations)CallableSizedN)InterpolateModedefault_upsamplerFrboolz&Callable[[torch.Tensor], torch.Tensor]) spatial_size align_cornersreturncsfdd}|S)z A linear interpolation method for upsampling the feature map. The output of this function is a callable `func`, such that `func(x)` returns an upsampled tensor. cs8tjtjtjg}|td}tj|t|jdS)N)sizemoder ) rLINEARBILINEAR TRILINEARlenF interpolatestrvalue)x linear_mode interp_moder rO/home/dell461/cl/sdc2/HISourceFinder-master-l/src/monai/visualize/visualizer.pyupszdefault_upsampler..upr)rr rrrrrs)F) __future__rcollections.abcrrtorchtorch.nn.functionalnn functionalr monai.utilsr__all__rrrrr s