Skip to content

Commit

Permalink
Sed script pass
Browse files Browse the repository at this point in the history
  • Loading branch information
afuller-TT committed Jan 10, 2025
1 parent 2584d50 commit 2df5583
Show file tree
Hide file tree
Showing 871 changed files with 3,482 additions and 2,482 deletions.
8 changes: 4 additions & 4 deletions Doxyfile
Original file line number Diff line number Diff line change
Expand Up @@ -922,9 +922,9 @@ WARN_LOGFILE =
# spaces. See also FILE_PATTERNS and EXTENSION_MAPPING
# Note: If this tag is empty the current directory is searched.

INPUT = tt_metal/hw/inc/dataflow_api.h \
INPUT = tt_metal/api/tt-metalium/dataflow_api.h \
tt_metal/hw/inc/ethernet/dataflow_api.h \
tt_metal/host_api.hpp \
tt_metal/api/tt-metalium/host_api.hpp \
tt_metal/include/compute_kernel_api/eltwise_unary/erf_erfc.h \
tt_metal/include/compute_kernel_api/eltwise_unary/erfinv.h \
tt_metal/include/compute_kernel_api/eltwise_unary/exp.h \
Expand Down Expand Up @@ -953,12 +953,12 @@ INPUT = tt_metal/hw/inc/dataflow_api.h \
tt_metal/include/compute_kernel_api.h \
tt_metal/impl/kernels/kernel_args.hpp \
tt_metal/include/tt_metal/metal.hpp \
tt_metal/include/tt_metal/types.hpp \
tt_metal/api/tt-metalium/types.hpp \
tt_metal/include/tt_metal/buffer.hpp \
tt_metal/include/tt_metal/command_queue.hpp \
tt_metal/include/tt_metal/device.hpp \
tt_metal/include/tt_metal/event.hpp \
tt_metal/include/tt_metal/global_circular_buffer.hpp \
tt_metal/api/tt-metalium/global_circular_buffer.hpp \
tt_metal/include/tt_metal/kernel.hpp \
tt_metal/include/tt_metal/program.hpp \
tt_metal/include/tt_metal/trace.hpp
Expand Down
4 changes: 2 additions & 2 deletions tests/tt_eager/integration_tests/test_bert.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
#include "ttnn/tensor/tensor.hpp"
#include "ttnn/operation.hpp"
#include "ttnn/operations/normalization/softmax/softmax.hpp"
#include "tt_metal/common/constants.hpp"
#include "tt_metal/host_api.hpp"
#include <tt-metalium/constants.hpp>
#include <tt-metalium/host_api.hpp>
#include "ttnn/operations/functions.hpp"
#include "ttnn/operations/matmul/matmul.hpp"
#include "ttnn/operations/normalization/layernorm/layernorm.hpp"
Expand Down
2 changes: 1 addition & 1 deletion tests/tt_eager/ops/test_average_pool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include "ttnn/operations/functions.hpp"

#include "ttnn/tensor/tensor.hpp"
#include "common/constants.hpp"
#include <tt-metalium/constants.hpp>

using tt::tt_metal::DataType;
using tt::tt_metal::IDevice;
Expand Down
4 changes: 2 additions & 2 deletions tests/tt_eager/ops/test_bcast_op.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
//
// SPDX-License-Identifier: Apache-2.0

#include "tt_metal/host_api.hpp"
#include <tt-metalium/host_api.hpp>
#include "ttnn/cpp/ttnn/operations/creation.hpp"
#include "ttnn/tensor/tensor.hpp"
#include "ttnn/operations/data_movement/bcast/bcast.hpp"
#include "common/constants.hpp"
#include <tt-metalium/constants.hpp>
#include <magic_enum/magic_enum.hpp>
#include <ttnn/operations/functions.hpp>

Expand Down
4 changes: 2 additions & 2 deletions tests/tt_eager/ops/test_bmm_op.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
//
// SPDX-License-Identifier: Apache-2.0

#include "tt_metal/host_api.hpp"
#include <tt-metalium/host_api.hpp>
#include "ttnn/cpp/ttnn/operations/creation.hpp"
#include "ttnn/tensor/tensor.hpp"
#include "ttnn/tensor/types.hpp"
#include "ttnn/operations/matmul/device/matmul_op.hpp"
#include "common/constants.hpp"
#include <tt-metalium/constants.hpp>
#include "ttnn/operations/functions.hpp"

using namespace tt;
Expand Down
4 changes: 2 additions & 2 deletions tests/tt_eager/ops/test_conv_prepare_weights_and_biases.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
//
// SPDX-License-Identifier: Apache-2.0

#include "common/assert.hpp"
#include "common/bfloat16.hpp"
#include <tt-metalium/assert.hpp>
#include <tt-metalium/bfloat16.hpp>
#include "ttnn/cpp/ttnn/tensor/host_buffer/functions.hpp"
#include "ttnn/cpp/ttnn/tensor/types.hpp"
#include "ttnn/tensor/host_buffer/functions.hpp"
Expand Down
2 changes: 1 addition & 1 deletion tests/tt_eager/ops/test_eltwise_binary_op.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//
// SPDX-License-Identifier: Apache-2.0

#include "common/constants.hpp"
#include <tt-metalium/constants.hpp>
#include "ttnn/tensor/host_buffer/functions.hpp"
#include "ttnn/tensor/host_buffer/types.hpp"
#include "ttnn/tensor/tensor.hpp"
Expand Down
4 changes: 2 additions & 2 deletions tests/tt_eager/ops/test_eltwise_unary_op.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@

#include <cmath>

#include "common/constants.hpp"
#include <tt-metalium/constants.hpp>
#include "ttnn/tensor/host_buffer/functions.hpp"
#include "ttnn/tensor/host_buffer/types.hpp"
#include "ttnn/tensor/tensor.hpp"
#include "ttnn/operations/eltwise/unary/unary.hpp"
#include "ttnn/operations/eltwise/unary/device/unary_device_operation.hpp"
#include "ttnn/operations/data_movement/pad/pad.hpp"
#include "ttnn/operation.hpp"
#include "tt_metal/host_api.hpp"
#include <tt-metalium/host_api.hpp>
#include "ttnn/operations/functions.hpp"

using tt::tt_metal::DataType;
Expand Down
2 changes: 1 addition & 1 deletion tests/tt_eager/ops/test_fold_op.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

#include "ttnn/tensor/tensor.hpp"
#include "ttnn/operations/data_movement/fold/fold.hpp"
#include "tt_metal/host_api.hpp"
#include <tt-metalium/host_api.hpp>

using namespace tt;
using namespace tt::tt_metal;
Expand Down
2 changes: 1 addition & 1 deletion tests/tt_eager/ops/test_layernorm_op.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//
// SPDX-License-Identifier: Apache-2.0

#include "tt_metal/host_api.hpp"
#include <tt-metalium/host_api.hpp>
#include "ttnn/tensor/tensor.hpp"
#include "ttnn/operations/normalization/layernorm/layernorm.hpp"
#include <ttnn/operations/functions.hpp>
Expand Down
4 changes: 2 additions & 2 deletions tests/tt_eager/ops/test_pad_op.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@

#include <cmath>

#include "common/constants.hpp"
#include <tt-metalium/constants.hpp>
#include "ttnn/tensor/host_buffer/types.hpp"
#include "ttnn/tensor/tensor.hpp"
#include "ttnn/operation.hpp"
#include "ttnn/operations/data_movement/pad/pad.hpp"
#include "tt_metal/host_api.hpp"
#include <tt-metalium/host_api.hpp>
#include "ttnn/operations/functions.hpp"

using tt::tt_metal::DataType;
Expand Down
8 changes: 4 additions & 4 deletions tests/tt_eager/ops/test_sfpu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@

#include <magic_enum/magic_enum.hpp>

#include "tt_metal/host_api.hpp"
#include "tt_metal/detail/tt_metal.hpp"
#include "tt_metal/impl/buffers/buffer.hpp"
#include "common/bfloat16.hpp"
#include <tt-metalium/host_api.hpp>
#include <tt-metalium/tt_metal.hpp>
#include <tt-metalium/buffer.hpp>
#include <tt-metalium/bfloat16.hpp>
#include "tests_common/sfpu_helper/sfpu_helper.hpp"
#include "ttnn/operations/eltwise/unary/common/unary_op_utils.hpp"
// #include "tt_gdb/tt_gdb.hpp"
Expand Down
2 changes: 1 addition & 1 deletion tests/tt_eager/ops/test_sliding_window_ops.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#include "ttnn/tensor/tensor.hpp"
#include "ttnn/operations/sliding_window/reference_sliding_window.hpp"
#include "ttnn/tensor/tensor.hpp"
#include "tt_metal/host_api.hpp"
#include <tt-metalium/host_api.hpp>
#include "ttnn/operations/functions.hpp"
#include "ttnn/tensor/types.hpp"

Expand Down
2 changes: 1 addition & 1 deletion tests/tt_eager/ops/test_softmax_op.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//
// SPDX-License-Identifier: Apache-2.0

#include "tt_metal/host_api.hpp"
#include <tt-metalium/host_api.hpp>
#include "ttnn/tensor/tensor.hpp"
#include "ttnn/operations/normalization/softmax/softmax.hpp"
#include "ttnn/operations/functions.hpp"
Expand Down
4 changes: 2 additions & 2 deletions tests/tt_eager/ops/test_tilize_op.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
#include <random>
#include <ttnn/operations/functions.hpp>

#include "common/constants.hpp"
#include <tt-metalium/constants.hpp>
#include "ttnn/tensor/host_buffer/functions.hpp"
#include "ttnn/tensor/host_buffer/types.hpp"
#include "ttnn/tensor/tensor.hpp"
#include "ttnn/operations/data_movement/tilize/tilize.hpp"
#include "tt_metal/host_api.hpp"
#include <tt-metalium/host_api.hpp>

using namespace tt;
using namespace tt_metal;
Expand Down
4 changes: 2 additions & 2 deletions tests/tt_eager/ops/test_tilize_op_channels_last.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
#include <functional>
#include <random>

#include "common/constants.hpp"
#include <tt-metalium/constants.hpp>
#include "ttnn/tensor/host_buffer/functions.hpp"
#include "ttnn/tensor/host_buffer/types.hpp"
#include "ttnn/tensor/tensor.hpp"
#include "ttnn/operations/data_movement/tilize/tilize.hpp"
#include "tt_metal/host_api.hpp"
#include <tt-metalium/host_api.hpp>
#include "ttnn/operations/functions.hpp"

using namespace tt;
Expand Down
4 changes: 2 additions & 2 deletions tests/tt_eager/ops/test_tilize_zero_padding.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
#include <functional>
#include <random>

#include "common/constants.hpp"
#include <tt-metalium/constants.hpp>
#include "ttnn/tensor/host_buffer/functions.hpp"
#include "ttnn/tensor/host_buffer/types.hpp"
#include "ttnn/tensor/tensor.hpp"
#include "ttnn/operations/data_movement/tilize_with_val_padding/tilize_with_val_padding.hpp"
#include "tt_metal/host_api.hpp"
#include <tt-metalium/host_api.hpp>
#include "ttnn/operations/functions.hpp"

using namespace tt;
Expand Down
4 changes: 2 additions & 2 deletions tests/tt_eager/ops/test_tilize_zero_padding_channels_last.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
#include <functional>
#include <random>

#include "common/constants.hpp"
#include <tt-metalium/constants.hpp>
#include "ttnn/cpp/ttnn/operations/creation.hpp"
#include "ttnn/tensor/host_buffer/functions.hpp"
#include "ttnn/tensor/host_buffer/types.hpp"
#include "ttnn/tensor/tensor.hpp"
#include "ttnn/operations/data_movement/tilize_with_val_padding/tilize_with_val_padding.hpp"
#include "tt_metal/host_api.hpp"
#include <tt-metalium/host_api.hpp>

using namespace tt;
using namespace tt_metal;
Expand Down
2 changes: 1 addition & 1 deletion tests/tt_eager/ops/test_transpose_op.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//
// SPDX-License-Identifier: Apache-2.0

#include "tt_metal/host_api.hpp"
#include <tt-metalium/host_api.hpp>
#include "ttnn/tensor/tensor.hpp"
#include "ttnn/operations/data_movement/transpose/transpose.hpp"
#include <ttnn/operations/functions.hpp>
Expand Down
2 changes: 1 addition & 1 deletion tests/tt_eager/ops/test_transpose_wh_multi_core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#include "ttnn/tensor/host_buffer/types.hpp"
#include "ttnn/tensor/tensor.hpp"
#include "ttnn/operations/data_movement/transpose/transpose.hpp"
#include "tt_metal/host_api.hpp"
#include <tt-metalium/host_api.hpp>

using namespace tt;
using namespace tt_metal;
Expand Down
2 changes: 1 addition & 1 deletion tests/tt_eager/ops/test_transpose_wh_single_core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#include "ttnn/tensor/host_buffer/types.hpp"
#include "ttnn/tensor/tensor.hpp"
#include "ttnn/operations/data_movement/transpose/transpose.hpp"
#include "tt_metal/host_api.hpp"
#include <tt-metalium/host_api.hpp>

using namespace tt;
using namespace tt_metal;
Expand Down
6 changes: 3 additions & 3 deletions tests/tt_eager/tensors/test_async_tensor_apis.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@

#include <chrono>

#include "common/bfloat16.hpp"
#include "common/constants.hpp"
#include <tt-metalium/bfloat16.hpp>
#include <tt-metalium/constants.hpp>
#include "ttnn/cpp/ttnn/operations/creation.hpp"
#include "ttnn/tensor/host_buffer/functions.hpp"
#include "ttnn/tensor/host_buffer/types.hpp"
#include "ttnn/tensor/tensor.hpp"
#include "ttnn/tensor/tensor_impl.hpp"
#include "ttnn/tensor/types.hpp"
#include "tests/tt_metal/tt_metal/common/dispatch_fixture.hpp"
#include "tt_metal/host_api.hpp"
#include <tt-metalium/host_api.hpp>

#include "ttnn/operations/eltwise/binary/binary.hpp"
#include "ttnn/operations/eltwise/unary/unary.hpp"
Expand Down
6 changes: 3 additions & 3 deletions tests/tt_eager/tensors/test_copy_and_move.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
//
// SPDX-License-Identifier: Apache-2.0

#include "common/bfloat16.hpp"
#include "common/constants.hpp"
#include <tt-metalium/bfloat16.hpp>
#include <tt-metalium/constants.hpp>
#include "ttnn/cpp/ttnn/operations/creation.hpp"
#include "ttnn/tensor/host_buffer/functions.hpp"
#include "ttnn/tensor/host_buffer/types.hpp"
#include "ttnn/tensor/tensor.hpp"
#include "ttnn/tensor/tensor_impl.hpp"
#include "tt_metal/host_api.hpp"
#include <tt-metalium/host_api.hpp>
#include "ttnn/operations/functions.hpp"

using namespace tt;
Expand Down
4 changes: 2 additions & 2 deletions tests/tt_eager/tensors/test_host_device_loopback.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
#include <functional>
#include <random>

#include "common/constants.hpp"
#include <tt-metalium/constants.hpp>
#include "ttnn/tensor/host_buffer/functions.hpp"
#include "ttnn/tensor/host_buffer/types.hpp"
#include "ttnn/tensor/tensor.hpp"
#include "tt_metal/host_api.hpp"
#include <tt-metalium/host_api.hpp>
#include "ttnn/operations/functions.hpp"

using namespace tt;
Expand Down
6 changes: 3 additions & 3 deletions tests/tt_eager/tensors/test_ranks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
#include <functional>
#include <random>

#include "common/bfloat16.hpp"
#include "common/constants.hpp"
#include <tt-metalium/bfloat16.hpp>
#include <tt-metalium/constants.hpp>
#include "ttnn/tensor/host_buffer/functions.hpp"
#include "ttnn/tensor/host_buffer/types.hpp"
#include "ttnn/tensor/tensor.hpp"
#include "ttnn/tensor/tensor_impl.hpp"
#include "tt_metal/host_api.hpp"
#include <tt-metalium/host_api.hpp>
#include "ttnn/operations/functions.hpp"

using namespace tt;
Expand Down
6 changes: 3 additions & 3 deletions tests/tt_eager/tensors/test_raw_host_memory_pointer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
#include <functional>
#include <random>

#include "common/bfloat16.hpp"
#include "common/constants.hpp"
#include <tt-metalium/bfloat16.hpp>
#include <tt-metalium/constants.hpp>
#include "ttnn/tensor/host_buffer/functions.hpp"
#include "ttnn/tensor/host_buffer/types.hpp"
#include "ttnn/tensor/tensor.hpp"
#include "ttnn/tensor/tensor_impl.hpp"
#include "ttnn/operations/eltwise/binary/binary.hpp"
#include "ttnn/operations/eltwise/unary/unary.hpp"
#include "tt_metal/host_api.hpp"
#include <tt-metalium/host_api.hpp>
#include "ttnn/operations/functions.hpp"

/*
Expand Down
6 changes: 3 additions & 3 deletions tests/tt_metal/distributed/test_mesh_workload.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@

#include "tests/tt_metal/tt_metal/dispatch/dispatch_test_utils.hpp"
#include "tests/tt_metal/distributed/distributed_fixture.hpp"
#include "tt_metal/host_api.hpp"
#include "tt_metal/detail/tt_metal.hpp"
#include "tt_metal/common/bfloat16.hpp"
#include <tt-metalium/host_api.hpp>
#include <tt-metalium/tt_metal.hpp>
#include <tt-metalium/bfloat16.hpp>

namespace tt::tt_metal::distributed::test {

Expand Down
4 changes: 2 additions & 2 deletions tests/tt_metal/llrt/test_libs/conv_pattern.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
#pragma once
#include <map>
#include "tt_metal/test_utils/deprecated/tensor.hpp"
#include "tt_metal/common/assert.hpp"
#include "tt_metal/common/constants.hpp"
#include <tt-metalium/assert.hpp>
#include <tt-metalium/constants.hpp>
using namespace tt::constants;
class ConvParameters {
public:
Expand Down
2 changes: 1 addition & 1 deletion tests/tt_metal/test_utils/comparison.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include <functional>
#include <random>

#include "tt_metal/common/logger.hpp"
#include <tt-metalium/logger.hpp>
#include "tt_metal/test_utils/packing.hpp"

namespace tt {
Expand Down
2 changes: 1 addition & 1 deletion tests/tt_metal/test_utils/df/float32.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#pragma once
#include <iostream>

#include "tt_metal/common/logger.hpp"
#include <tt-metalium/logger.hpp>

namespace tt::test_utils::df {

Expand Down
Loading

0 comments on commit 2df5583

Please sign in to comment.