Skip to content

Commit

Permalink
tiny fix
Browse files Browse the repository at this point in the history
  • Loading branch information
svuckovicTT committed Dec 25, 2024
1 parent ce9cdac commit 04c953a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lib/Conversion/TTIRToTTNN/TTIRToTTNN.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,9 @@ class TensorEmptyConversionPattern
ttnn::ShardSpecAttr shardSpecAttr = ttnn::ShardSpecAttr::get(
op.getContext(),
ttnn::ShapeAttr::get(op.getContext(), layoutAttr.getShardShape()));
ttnn::TensorMemoryLayoutAttr memLayout =
layoutAttr.getMemLayout() ? layoutAttr.getMemLayout() : nullptr;
ttnn::MemoryConfigAttr memoryConfigAttr = ttnn::MemoryConfigAttr::get(
op.getContext(), bufferTypeAttr, shardSpecAttr, memLayout);
ttnn::MemoryConfigAttr memoryConfigAttr =
ttnn::MemoryConfigAttr::get(op.getContext(), bufferTypeAttr,
shardSpecAttr, layoutAttr.getMemLayout());

// Replace op
//
Expand Down

0 comments on commit 04c953a

Please sign in to comment.