Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Fix warnings

vishnukvmdd0a85aa146d5
diff --git a/lib/services/semantic_search/frameworks/onnx/onnx_image_encoder.dart b/lib/services/semantic_search/frameworks/onnx/onnx_image_encoder.dart
index a9fd21f287..0d6de7d1e5 100644
--- a/lib/services/semantic_search/frameworks/onnx/onnx_image_encoder.dart
+++ b/lib/services/semantic_search/frameworks/onnx/onnx_image_encoder.dart
@@ -101,9 +101,9 @@ class OnnxImageEncoder {
final int inputSize = 3 * nx * ny;
final inputImage = List.filled(inputSize, 0.toDouble());
- final int nx2 = 224;
- final int ny2 = 224;
- final int totalSize = 3 * nx2 * ny2;
+ const int nx2 = 224;
+ const int ny2 = 224;
+ const int totalSize = 3 * nx2 * ny2;
// Load image into List<double> inputImage
for (int y = 0; y < ny; y++) {