Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add downsample unit tests #18644

Merged
merged 2 commits into from
Mar 5, 2025
Merged

Add downsample unit tests #18644

merged 2 commits into from
Mar 5, 2025

Conversation

skrsticTT
Copy link
Contributor

@skrsticTT skrsticTT commented Mar 5, 2025

Ticket

Issue: #18201

What's changed

Downsample tests belonged to tt eager tests, which are deleted. Reverted same test coverage and put it in unit tests.

Checklist

@skrsticTT skrsticTT self-assigned this Mar 5, 2025
@skrsticTT skrsticTT changed the title Add downsample teste Add downsample unit tests Mar 5, 2025
@skrsticTT skrsticTT requested a review from pavlejosipovic March 5, 2025 14:15
from loguru import logger

import ttnn
from tt_lib.utils import _nearest_y
Copy link
Contributor

Choose a reason for hiding this comment

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

remove references to tt_lib

@pytest.mark.parametrize(
"batch_size, output_channels, input_channels, input_height, input_width, stride_h, stride_w, num_cores, grid_size, height_sharded",
(
# (10, 64, 64, 16, 16, 2, 2, 20, (10,2), False),
Copy link
Contributor

Choose a reason for hiding this comment

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

can we uncomment these

# Convert NCHW to NHWC shape
A_pyt_nhwc = torch.permute(A_pyt, (0, 2, 3, 1))
A_pyt_nhwc = A_pyt_nhwc.reshape(1, 1, batch_size * input_height * input_width, input_channels)
# for i in range(2):
Copy link
Contributor

Choose a reason for hiding this comment

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

remove code under comments

Copy link
Contributor

@pavlejosipovic pavlejosipovic left a comment

Choose a reason for hiding this comment

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

approved assume post commit is green

@skrsticTT skrsticTT merged commit 7163480 into main Mar 5, 2025
158 of 159 checks passed
@skrsticTT skrsticTT deleted the skrstic/add-downsample-tests branch March 5, 2025 17:48
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.

3 participants