@@ -26,7 +26,8 @@ ttk::TopologicalDimensionReduction::TopologicalDimensionReduction(
2626 LearningRate(learningRate), Optimizer(optimizer), Method(method),
2727 ModelType(modelType), InputIsImages(inputIsImages),
2828 Architecture(architecture), Activation(activation), BatchSize(batchSize),
29- BatchNormalization(batchNormalization), RegCoefficient(regCoefficient), PreOptimize(preOptimize), PreOptimizeEpochs(preOptimizeEpochs) {
29+ BatchNormalization(batchNormalization), RegCoefficient(regCoefficient),
30+ PreOptimize(preOptimize), PreOptimizeEpochs(preOptimizeEpochs) {
3031 // inherited from Debug: prefix will be printed at the beginning of every msg
3132 this ->setDebugMsgPrefix (" TopologicalDimensionReduction" );
3233
@@ -91,7 +92,8 @@ int ttk::TopologicalDimensionReduction::execute(
9192
9293 const int inputSize = n;
9394 const int inputRawDimension = inputMatrix.size () / n;
94- const int inputDimension = inputRawDimension - PreOptimize*NumberOfComponents;
95+ const int inputDimension
96+ = inputRawDimension - PreOptimize * NumberOfComponents;
9597 if (!InputIsImages)
9698 this ->printMsg (" input dimension: " + std::to_string (inputDimension), 0.0 ,
9799 tm.getElapsedTime ());
@@ -118,7 +120,8 @@ int ttk::TopologicalDimensionReduction::execute(
118120 {inputSize, inputRawDimension}, torch::kFloat64 )
119121 .to (torch::kFloat32 )
120122 .to (device);
121- const torch::Tensor input = rawInput.index ({Slice (), Slice (None,inputDimension)});
123+ const torch::Tensor input
124+ = rawInput.index ({Slice (), Slice (None, inputDimension)});
122125
123126 rpd::PointCloud points (inputSize, std::vector<double >(inputDimension));
124127 for (int i = 0 ; i < inputSize; ++i) {
0 commit comments