File tree Expand file tree Collapse file tree 1 file changed +0
-6
lines changed Expand file tree Collapse file tree 1 file changed +0
-6
lines changed Original file line number Diff line number Diff line change @@ -36,9 +36,6 @@ def forward(self, input: torch.Tensor) -> torch.Tensor:
3636 input_proc = self .activation_pre_process (input )
3737 input_proc = self ._conv_forward (input_proc , self .weight_pre_process (self .weight ), bias = self .bias )
3838
39- if isinstance (input_proc , tuple ) and len (input_proc ) == 1 :
40- input_proc = input_proc [0 ]
41-
4239 return self .activation_post_process (
4340 input_proc ,
4441 input
@@ -94,9 +91,6 @@ def forward(self, input: torch.Tensor) -> torch.Tensor:
9491 input_proc = self .activation_pre_process (input )
9592 input_proc = self ._conv_forward (input_proc , self .weight_pre_process (self .weight ), bias = self .bias )
9693
97- if isinstance (input_proc , tuple ) and len (input_proc ) == 1 :
98- input_proc = input_proc [0 ]
99-
10094 return self .activation_post_process (
10195 input_proc ,
10296 input
You can’t perform that action at this time.
0 commit comments