-
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
sliding window ops in c++ #8389
sliding window ops in c++ #8389
Conversation
#0: Halo op using new c++ config generation #0: new micro op function for halo to be used in place of utwhv2
…es hash along with it
const auto& input_tensor_b = input_tensors.at(1); | ||
const auto& input_tensor_bias = optional_input_tensors.at(0); | ||
auto& output_tensor = output_tensors.at(0); | ||
TT_ASSERT(input_tensor_a.memory_config().is_sharded()); // TODO: move this check to validate_input_tensors |
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.
Any validation of user input, use TT_FATAL
TT_ASSERT is for validating internal behaviour (ie allocated Buffer is not null)
Asserts are disabled in the "release" build for faster speed
TT_FATAL is always on , in all builds ,since we always want to error out if user is not using the OP correctly (even in "release" build)
#include "tt_eager/tt_dnn/op_library/sliding_window_op_infra/halo_op.hpp" | ||
#include "tt_eager/tt_dnn/op_library/sliding_window_op_infra/sliding_window.hpp" | ||
|
||
using namespace tt; |
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 using namespace tt
#include "tt_eager/tt_dnn/op_library/sliding_window_op_infra/sliding_window.hpp" | ||
#include "tt_eager/tt_dnn/op_library/sliding_window_op_infra/halo_op.hpp" | ||
|
||
using namespace tt; |
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 using namespace tt
closing this in favor of: #8623 |
No description provided.