Skip to content

Commit

Permalink
Fix clang tidy errors
Browse files Browse the repository at this point in the history
  • Loading branch information
odjuricicTT committed Nov 22, 2024
1 parent 8e90565 commit 93193c8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions lib/Dialect/TTNN/Analysis/LegalLayoutAnalysis.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,12 @@ bool tensor_shape_compatible_with_shard(Operation *op, TTNNLayoutAttr layout) {
}
}
return true;
} else {
// TODO(odjuricic): For row major there are no constraints on how the tensor
// can be sharded. We need some kind of a heuristic to reduce the search
// space.
return true;
}

// TODO(odjuricic): For row major there are no constraints on how the tensor
// can be sharded. We need some kind of a heuristic to reduce the search
// space.
return true;
}

bool cantChangeOutputLayout(Operation *op) {
Expand Down
6 changes: 3 additions & 3 deletions tools/explorer/test/run_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"tools/explorer/test/models/*.mlir",
]
TEST_EXECUTE_MODEL_PATHS = [
"test/ttmlir/Silicon/TTNN/optimizer/mnist_sharding_tiled.mlir",
"test/ttmlir/Silicon/TTNN/optimizer/mnist_sharding.mlir",
]


Expand Down Expand Up @@ -97,14 +97,14 @@ def test_execute_model(model_path):

def test_execute_mnist_l1_interleaved():
execute_command(
"test/ttmlir/Silicon/TTNN/optimizer/mnist_sharding_tiled.mlir",
"test/ttmlir/Silicon/TTNN/optimizer/mnist_sharding.mlir",
{"optimizationPolicy": "L1 Interleaved"},
)


def test_execute_mnist_optimizer_disabled():
execute_command(
"test/ttmlir/Silicon/TTNN/optimizer/mnist_sharding_tiled.mlir",
"test/ttmlir/Silicon/TTNN/optimizer/mnist_sharding.mlir",
{"optimizationPolicy": "Optimizer Disabled"},
)

Expand Down

0 comments on commit 93193c8

Please sign in to comment.