-
Notifications
You must be signed in to change notification settings - Fork 117
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
Add downsample unit tests #18644
Conversation
from loguru import logger | ||
|
||
import ttnn | ||
from tt_lib.utils import _nearest_y |
There was a problem hiding this comment.
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), |
There was a problem hiding this comment.
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): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove code under comments
There was a problem hiding this 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
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