Skip to content

[circle-mlir] Introduce unit test model for Transpose#14812

Merged
seanshpark merged 1 commit intoSamsung:masterfrom
seanshpark:cm_model_transpose
Mar 11, 2025
Merged

[circle-mlir] Introduce unit test model for Transpose#14812
seanshpark merged 1 commit intoSamsung:masterfrom
seanshpark:cm_model_transpose

Conversation

@seanshpark
Copy link
Copy Markdown
Contributor

This will introduce unit test model for Transpose conversion.

This will introduce unit test model for Transpose conversion.

ONE-DCO-1.0-Signed-off-by: SaeHie Park <saehie.park@gmail.com>
@seanshpark seanshpark requested a review from a team March 11, 2025 00:33
Comment on lines +11 to +12
x = torch.transpose(input, 1, 3)
return torch.transpose(x, 1, 2)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about input.permute(0,2,3,1)?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

input.permute() gives same result, but I'd like to use torch.transpose()

Copy link
Copy Markdown
Collaborator

@mhs4670go mhs4670go left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@seanshpark seanshpark merged commit 93a611f into Samsung:master Mar 11, 2025
5 checks passed
@seanshpark seanshpark deleted the cm_model_transpose branch March 11, 2025 04:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants