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

sliding window ops in c++ #8389

Conversation

tt-nshanker
Copy link
Contributor

No description provided.

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
Copy link
Collaborator

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;
Copy link
Contributor

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;
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove using namespace tt

@mywoodstock mywoodstock changed the title Asarje/nshanker/conv cpp refactor sliding window ops in c++ May 15, 2024
@mywoodstock
Copy link
Contributor

closing this in favor of: #8623

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.

None yet

5 participants