Skip to content

Commit 576f46c

Browse files
committed
format
1 parent a0172e0 commit 576f46c

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

core/base/topologicalDimensionReduction/TopologicalDimensionReduction.cpp

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -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) {

core/vtk/ttkDimensionReduction/ttkDimensionReduction.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ int ttkDimensionReduction::RequestData(vtkInformation *ttkNotUsed(request),
7676
arrays.push_back(input->GetColumnByName(s.data()));
7777

7878
if(Method == METHOD::AE && ae_PreOptimize) {
79-
if (SelectInitializationFieldsWithRegexp) {
79+
if(SelectInitializationFieldsWithRegexp) {
8080
// select all input columns whose name is matching the regexp
8181
InitializationFields.clear();
8282
const auto n = input->GetNumberOfColumns();

0 commit comments

Comments
 (0)