-
Notifications
You must be signed in to change notification settings - Fork 87
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
Delete convd_host_weights and update all tests using conv2d #16264
base: main
Are you sure you want to change the base?
Conversation
4b201bc
to
cadb3dd
Compare
"batch_size": batch_size, | ||
"input_height": input_tensor.shape[1], | ||
"input_width": input_tensor.shape[2], | ||
"kernel_size": (3, 3), |
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.
seems like most args are redundant between prepare_conv_weights and conv2d
I don't this we should hardcode params twice like kernel size (3, 3), all of these should be defined in one place.
It's weird that for prepare_conv_weights we use this kwargs dict, and on conv2d we use named argumets, I would align those.
Also, there is not need to define this conv_kwargs in case it's not going to be used, it should be under if where ttnn.prepare_conv_weights is.
This comment applies to all models changed.
"conv_config": conv_config, | ||
} | ||
|
||
if True or not ttnn.is_tensor_storage_on_device(tt_weight): |
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.
Should "True or" part be removed?
**conv_kwargs, | ||
) | ||
self.bias = ( | ||
ttnn.prepare_conv_bias( |
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.
prepare weights should be performed in init part of the model not in inference part
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.
It doesn't seem like all conv models are covered here?
} | ||
|
||
if not ttnn.is_tensor_storage_on_device(self.weight): | ||
breakpoint |
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?
Ticket
#14179
Problem description
Prepare conv2d_weight and bias in various models.
What's changed
Using Prepare_conv2d_weight and bias fuction in conv2d api.
Device perf regressions
Nightly model and ttnn tests
Model perf tests
Checklist