Skip to content

Commit

Permalink
#8967: fix padded shape
Browse files Browse the repository at this point in the history
  • Loading branch information
sraizada-tt committed May 30, 2024
1 parent fc9a458 commit 1ca6348
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ttnn/ttnn/operations/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ def from_torch(
memory_config = ttnn.DRAM_MEMORY_CONFIG
tensor = ttnn.to_device(tensor, device, memory_config=memory_config)

if shape_with_padding is not None and shape_with_padding != tensor.shape and mesh_mapper is None:
if shape_with_padding is not None and shape_with_padding != tensor.shape:
tensor = ttnn.reshape(tensor, shape_with_padding)

return tensor
Expand Down

0 comments on commit 1ca6348

Please sign in to comment.