From 31718645ad7851d0383f8b5ced59f0b4b15d32d8 Mon Sep 17 00:00:00 2001 From: Justin Zhao Date: Tue, 12 Jul 2022 17:26:05 -0400 Subject: [PATCH] Remove obsolete postprocess_inference_graph function. --- ludwig/features/number_feature.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/ludwig/features/number_feature.py b/ludwig/features/number_feature.py index 5da2c346a3d..255155ebf17 100644 --- a/ludwig/features/number_feature.py +++ b/ludwig/features/number_feature.py @@ -418,13 +418,6 @@ def postprocess_predictions( return predictions - @staticmethod - def postprocess_inference_graph( - preds: Dict[str, torch.Tensor], metadata: Dict[str, Any] - ) -> Dict[str, torch.Tensor]: - numeric_transformer = get_transformer(metadata, metadata["preprocessing"]) - return {PREDICTIONS: numeric_transformer.inverse_transform_inference(preds[PREDICTIONS])} - @staticmethod def populate_defaults(output_feature): set_default_value(output_feature, LOSS, {TYPE: "mean_squared_error", "weight": 1})