Skip to content

Commit

Permalink
replace auto with concrete type
Browse files Browse the repository at this point in the history
  • Loading branch information
arminaleTT committed Feb 26, 2025
1 parent 6ba406f commit bd84a76
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/Dialect/TTNN/IR/TTNNOpModelInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ ReluOp::getOpConstraints(const std::vector<TTNNLayoutAttr> &inputs,
const auto outputShape =
mlir::cast<RankedTensorType>(getResults().front().getType()).getShape();

auto check = detail::checkDeviceWorkerGrid(getOperation());
llvm::Expected<bool> check = detail::checkDeviceWorkerGrid(getOperation());
if (!check) {
return check.takeError();
}
Expand Down Expand Up @@ -100,7 +100,7 @@ AddOp::getOpConstraints(const std::vector<TTNNLayoutAttr> &inputs,
const auto outputShape =
mlir::cast<RankedTensorType>(getResult(0).getType()).getShape();

auto check = detail::checkDeviceWorkerGrid(getOperation());
llvm::Expected<bool> check = detail::checkDeviceWorkerGrid(getOperation());
if (!check) {
return check.takeError();
}
Expand Down Expand Up @@ -141,7 +141,7 @@ SoftmaxOp::getOpConstraints(const std::vector<TTNNLayoutAttr> &inputs,
const auto outputShape =
mlir::cast<RankedTensorType>(getResult().getType()).getShape();

auto check = detail::checkDeviceWorkerGrid(getOperation());
llvm::Expected<bool> check = detail::checkDeviceWorkerGrid(getOperation());
if (!check) {
return check.takeError();
}
Expand Down Expand Up @@ -177,7 +177,7 @@ MeanOp::getOpConstraints(const std::vector<TTNNLayoutAttr> &inputs,
const auto inputShape =
mlir::cast<RankedTensorType>(getOperand().getType()).getShape();

auto check = detail::checkDeviceWorkerGrid(getOperation());
llvm::Expected<bool> check = detail::checkDeviceWorkerGrid(getOperation());
if (!check) {
return check.takeError();
}
Expand Down Expand Up @@ -215,7 +215,7 @@ ReshapeOp::getOpConstraints(const std::vector<TTNNLayoutAttr> &inputs,
const auto outputShape =
mlir::cast<RankedTensorType>(getResult().getType()).getShape();

auto check = detail::checkDeviceWorkerGrid(getOperation());
llvm::Expected<bool> check = detail::checkDeviceWorkerGrid(getOperation());
if (!check) {
return check.takeError();
}
Expand Down Expand Up @@ -255,7 +255,7 @@ MatmulOp::getOpConstraints(const std::vector<TTNNLayoutAttr> &inputs,
const auto outputShape =
mlir::cast<RankedTensorType>(getResult().getType()).getShape();

auto check = detail::checkDeviceWorkerGrid(getOperation());
llvm::Expected<bool> check = detail::checkDeviceWorkerGrid(getOperation());
if (!check) {
return check.takeError();
}
Expand Down

0 comments on commit bd84a76

Please sign in to comment.