Skip to content

Commit

Permalink
Updates for MaxPool2DOp -> Pool2DOp<MAX_POOL2D> refactor in tt-metal …
Browse files Browse the repository at this point in the history
…to solve compile errors
  • Loading branch information
kmabeeTT committed Dec 3, 2024
1 parent d2bffa0 commit debef2a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion runtime/include/tt/runtime/detail/ttnn.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#include "ttnn/operations/embedding/embedding.hpp"
#include "ttnn/operations/matmul/matmul.hpp"
#include "ttnn/operations/normalization/softmax/softmax.hpp"
#include "ttnn/operations/pool/maxpool/max_pool2d.hpp"
#include "ttnn/operations/pool/generic/generic_pools.hpp"
#include "ttnn/operations/reduction/generic/generic_reductions.hpp"
#include "ttnn/tensor/host_buffer/functions.hpp"
#include "ttnn/tensor/tensor.hpp"
Expand Down
4 changes: 2 additions & 2 deletions runtime/lib/ttnn/operations/pool/maxpool2d.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ preshardForMaxPool2d(const ::tt::target::ttnn::MaxPool2dOp *op,

void run(const ::tt::target::ttnn::MaxPool2dOp *op, ProgramContext &context) {
ProgramTensorPool &tensorPool = context.getTensorPool();
const ::ttnn::operations::pool::MaxPool2DOp operation =
::ttnn::operations::pool::MaxPool2DOp();
const ::ttnn::operations::pool::Pool2DOp<::ttnn::operations::pool::Pool2DType::MAX_POOL2D> operation =
::ttnn::operations::pool::Pool2DOp<::ttnn::operations::pool::Pool2DType::MAX_POOL2D>();

::ttnn::Tensor input = tensorPool.at(op->in()->global_id());
DEBUG_ASSERT(input.is_allocated());
Expand Down

0 comments on commit debef2a

Please sign in to comment.