Skip to content

Commit

Permalink
Add mechanism for overriding with corresponding unittests.
Browse files Browse the repository at this point in the history
  • Loading branch information
vcanicTT committed Nov 26, 2024
1 parent 742f809 commit 124f0e9
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ using namespace mlir::tt::ttnn;
class TestOptimizerOverrides : public ::testing::Test {

public:
OptimizerOverridesHandler *optimizerOverridesHandler;
std::shared_ptr<OptimizerOverridesHandler> optimizerOverridesHandler;

void SetUp() override {
optimizerOverridesHandler = new OptimizerOverridesHandler();
optimizerOverridesHandler = std::make_shared<OptimizerOverridesHandler>();
}

llvm::StringMap<InputLayoutOverrideParams> createInputLayoutOverrides() {
Expand Down Expand Up @@ -194,7 +194,7 @@ class TestOptimizerOverrides : public ::testing::Test {
return true;
}

void TearDown() override { delete optimizerOverridesHandler; }
void TearDown() override {}
};

// Test the setOptimizerPass method
Expand Down

0 comments on commit 124f0e9

Please sign in to comment.