Skip to content

Commit ef79fed

Browse files
committed
avoid undefined reference in scale_value
1 parent 0c38813 commit ef79fed

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

autoPyTorch/pipeline/components/setup/network/forecasting_architecture.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,9 @@ def scale_value(self,
368368
outputs = raw_value - loc.to(device)
369369
else:
370370
outputs = (raw_value - loc.to(device)) / scale.to(device)
371-
return outputs
371+
return outputs
372+
else:
373+
return raw_value
372374

373375
@abstractmethod
374376
def forward(self,

0 commit comments

Comments
 (0)