Skip to content

Commit 38d17b6

Browse files
committed
spotless AI related codes
1 parent 8b3a3d4 commit 38d17b6

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

iotdb-core/ainode/iotdb/ainode/core/inference/inference_request_pool.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ def _step(self):
144144
batch_output = None
145145
self._logger.error("[Inference] Unsupported pipeline type.")
146146
batch_output = self._inference_pipeline.postprocess(batch_output)
147+
147148
offset = 0
148149
for request in requests:
149150
request.output_tensor = request.output_tensor.to(self.device)

iotdb-core/ainode/iotdb/ainode/core/model/sundial/pipeline_sundial.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,4 @@ def postprocess(self, outputs: torch.Tensor):
5858
"""
5959
outputs = outputs.mean(dim=1).unsqueeze(1)
6060
outputs = super().postprocess(outputs)
61-
return outputs
61+
return outputs

iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/relational/function/tvf/ForecastTableFunction.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,6 @@
7676

7777
public class ForecastTableFunction implements TableFunction {
7878

79-
private static final TsBlockSerde SERDE = new TsBlockSerde();
80-
8179
public static class ForecastTableFunctionHandle implements TableFunctionHandle {
8280
String modelId;
8381
int maxInputLength;

0 commit comments

Comments
 (0)