From 3e00f79a1e041c72ab188b84efd46406640b6d3f Mon Sep 17 00:00:00 2001 From: Ailing Zhang Date: Tue, 12 Mar 2019 12:01:49 -0700 Subject: [PATCH] remove warning for upsample code (#17921) Summary: IIRC we decided to remove warning in code in #11568. This got reverted accidentally in #14123. Pull Request resolved: https://github.com/pytorch/pytorch/pull/17921 Differential Revision: D14422811 Pulled By: ailzhang fbshipit-source-id: 7067264bd1d3e3b7861d29e18ade2969ed705ca1 --- torch/nn/modules/upsampling.py | 1 - 1 file changed, 1 deletion(-) diff --git a/torch/nn/modules/upsampling.py b/torch/nn/modules/upsampling.py index 38f98c0..261edcb 100644 --- a/torch/nn/modules/upsampling.py +++ b/torch/nn/modules/upsampling.py @@ -132,7 +132,6 @@ class Upsample(Module): @weak_script_method def forward(self, input): - warnings.warn("nn.{} is deprecated. Use nn.functional.interpolate instead.".format(self.name)) return F.interpolate(input, self.size, self.scale_factor, self.mode, self.align_corners) def extra_repr(self): -- 2.7.4