Skip to content

Commit

Permalink
#12795: Move to ttnn/cpp/ttnn/operations/numpy
Browse files Browse the repository at this point in the history
  • Loading branch information
VirdhatchaniKN committed Sep 20, 2024
1 parent df9e13b commit 037a3a9
Show file tree
Hide file tree
Showing 35 changed files with 34 additions and 34 deletions.
2 changes: 1 addition & 1 deletion tests/tt_eager/integration_tests/test_bert.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#include "ttnn/operations/normalization/softmax/softmax.hpp"
#include "tt_metal/common/constants.hpp"
#include "tt_metal/host_api.hpp"
#include "ttnn/operations/functions.hpp"
#include "ttnn/operations/numpy/functions.hpp"
#include "ttnn/operations/matmul/matmul.hpp"
#include "ttnn/operations/normalization/layernorm/layernorm.hpp"
#include "ttnn/operations/eltwise/binary/binary.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 @@ -4,7 +4,7 @@

#include "ttnn/operations/pool/avgpool/avg_pool.hpp"
#include "ttnn/operations/experimental/auto_format/auto_format.hpp"
#include "ttnn/operations/functions.hpp"
#include "ttnn/operations/numpy/functions.hpp"

#include "ttnn/tensor/tensor.hpp"
#include "common/constants.hpp"
Expand Down
2 changes: 1 addition & 1 deletion tests/tt_eager/ops/test_bcast_op.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include "ttnn/operations/data_movement/bcast/bcast.hpp"
#include "common/constants.hpp"
#include "third_party/magic_enum/magic_enum.hpp"
#include <ttnn/operations/functions.hpp>
#include <ttnn/operations/numpy/functions.hpp>

#include <algorithm>
#include <functional>
Expand Down
2 changes: 1 addition & 1 deletion tests/tt_eager/ops/test_bmm_op.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include "ttnn/tensor/tensor.hpp"
#include "ttnn/operations/matmul/device/matmul_op.hpp"
#include "common/constants.hpp"
#include "ttnn/operations/functions.hpp"
#include "ttnn/operations/numpy/functions.hpp"

#include <algorithm>
#include <functional>
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 @@ -7,7 +7,7 @@
#include "ttnn/tensor/host_buffer/types.hpp"
#include "ttnn/tensor/tensor.hpp"
#include "ttnn/operations/eltwise/binary/binary.hpp"
#include "ttnn/operations/functions.hpp"
#include "ttnn/operations/numpy/functions.hpp"

using tt::tt_metal::DataType;
using tt::tt_metal::Device;
Expand Down
2 changes: 1 addition & 1 deletion tests/tt_eager/ops/test_eltwise_unary_op.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#include "ttnn/operations/data_movement/pad/pad.hpp"
#include "ttnn/operation.hpp"
#include "tt_metal/host_api.hpp"
#include "ttnn/operations/functions.hpp"
#include "ttnn/operations/numpy/functions.hpp"

using tt::tt_metal::DataType;
using tt::tt_metal::Device;
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 @@ -5,7 +5,7 @@
#include <algorithm>
#include <functional>
#include <random>
#include <ttnn/operations/functions.hpp>
#include <ttnn/operations/numpy/functions.hpp>

#include "ttnn/tensor/tensor.hpp"
#include "ttnn/operations/data_movement/fold/fold.hpp"
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 @@ -5,7 +5,7 @@
#include "tt_metal/host_api.hpp"
#include "ttnn/tensor/tensor.hpp"
#include "ttnn/operations/normalization/layernorm/layernorm.hpp"
#include <ttnn/operations/functions.hpp>
#include <ttnn/operations/numpy/functions.hpp>

#include <algorithm>
#include <functional>
Expand Down
2 changes: 1 addition & 1 deletion tests/tt_eager/ops/test_pad_op.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#include "ttnn/operation.hpp"
#include "ttnn/operations/data_movement/pad/pad.hpp"
#include "tt_metal/host_api.hpp"
#include "ttnn/operations/functions.hpp"
#include "ttnn/operations/numpy/functions.hpp"

using tt::tt_metal::DataType;
using tt::tt_metal::Device;
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 @@ -11,7 +11,7 @@
#include "ttnn/operations/sliding_window/reference_sliding_window.hpp"
#include "ttnn/tensor/tensor.hpp"
#include "tt_metal/host_api.hpp"
#include "ttnn/operations/functions.hpp"
#include "ttnn/operations/numpy/functions.hpp"
#include "ttnn/tensor/types.hpp"

using tt::tt_metal::LegacyShape;
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 @@ -5,7 +5,7 @@
#include "tt_metal/host_api.hpp"
#include "ttnn/tensor/tensor.hpp"
#include "ttnn/operations/normalization/softmax/softmax.hpp"
#include "ttnn/operations/functions.hpp"
#include "ttnn/operations/numpy/functions.hpp"

#include <algorithm>
#include <functional>
Expand Down
2 changes: 1 addition & 1 deletion tests/tt_eager/ops/test_tilize_op.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include <algorithm>
#include <functional>
#include <random>
#include <ttnn/operations/functions.hpp>
#include <ttnn/operations/numpy/functions.hpp>

#include "common/constants.hpp"
#include "ttnn/tensor/host_buffer/functions.hpp"
Expand Down
2 changes: 1 addition & 1 deletion tests/tt_eager/ops/test_tilize_op_channels_last.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#include "ttnn/tensor/tensor.hpp"
#include "ttnn/operations/data_movement/tilize/tilize.hpp"
#include "tt_metal/host_api.hpp"
#include "ttnn/operations/functions.hpp"
#include "ttnn/operations/numpy/functions.hpp"

using namespace tt;
using namespace tt_metal;
Expand Down
2 changes: 1 addition & 1 deletion tests/tt_eager/ops/test_tilize_zero_padding.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#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 "ttnn/operations/functions.hpp"
#include "ttnn/operations/numpy/functions.hpp"

using namespace tt;
using namespace tt_metal;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#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 "ttnn/operations/functions.hpp"
#include "ttnn/operations/numpy/functions.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 @@ -5,7 +5,7 @@
#include "tt_metal/host_api.hpp"
#include "ttnn/tensor/tensor.hpp"
#include "ttnn/operations/data_movement/transpose/transpose.hpp"
#include <ttnn/operations/functions.hpp>
#include <ttnn/operations/numpy/functions.hpp>

#include <algorithm>
#include <functional>
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 @@ -5,7 +5,7 @@
#include <algorithm>
#include <functional>
#include <random>
#include <ttnn/operations/functions.hpp>
#include <ttnn/operations/numpy/functions.hpp>

#include "ttnn/tensor/host_buffer/functions.hpp"
#include "ttnn/tensor/host_buffer/types.hpp"
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 @@ -5,7 +5,7 @@
#include <algorithm>
#include <functional>
#include <random>
#include <ttnn/operations/functions.hpp>
#include <ttnn/operations/numpy/functions.hpp>

#include "ttnn/tensor/host_buffer/functions.hpp"
#include "ttnn/tensor/host_buffer/types.hpp"
Expand Down
2 changes: 1 addition & 1 deletion tests/tt_eager/tensors/test_async_tensor_apis.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#include "ttnn/tensor/types.hpp"
#include "tests/tt_metal/tt_metal/unit_tests_common/common/common_fixture.hpp"
#include "tt_metal/host_api.hpp"
#include "ttnn/operations/functions.hpp"
#include "ttnn/operations/numpy/functions.hpp"

#include "ttnn/operations/eltwise/binary/binary.hpp"
#include "ttnn/operations/eltwise/unary/unary.hpp"
Expand Down
2 changes: 1 addition & 1 deletion tests/tt_eager/tensors/test_copy_and_move.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#include "ttnn/tensor/tensor.hpp"
#include "ttnn/tensor/tensor_impl.hpp"
#include "tt_metal/host_api.hpp"
#include "ttnn/operations/functions.hpp"
#include "ttnn/operations/numpy/functions.hpp"

using namespace tt;
using namespace tt_metal;
Expand Down
2 changes: 1 addition & 1 deletion tests/tt_eager/tensors/test_host_device_loopback.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 "tt_metal/host_api.hpp"
#include "ttnn/operations/functions.hpp"
#include "ttnn/operations/numpy/functions.hpp"

using namespace tt;
using namespace tt_metal;
Expand Down
2 changes: 1 addition & 1 deletion tests/tt_eager/tensors/test_ranks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#include "ttnn/tensor/tensor.hpp"
#include "ttnn/tensor/tensor_impl.hpp"
#include "tt_metal/host_api.hpp"
#include "ttnn/operations/functions.hpp"
#include "ttnn/operations/numpy/functions.hpp"

using namespace tt;
using namespace tt_metal;
Expand Down
2 changes: 1 addition & 1 deletion tests/tt_eager/tensors/test_raw_host_memory_pointer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#include "ttnn/operations/eltwise/binary/binary.hpp"
#include "ttnn/operations/eltwise/unary/unary.hpp"
#include "tt_metal/host_api.hpp"
#include "ttnn/operations/functions.hpp"
#include "ttnn/operations/numpy/functions.hpp"

/*
Expand Down
2 changes: 1 addition & 1 deletion tests/ttnn/unit_tests/gtests/test_async_runtime.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#include "ttnn/deprecated/tt_dnn/op_library/moreh_sum/moreh_sum.hpp"
#include "common/bfloat16.hpp"
#include "ttnn/async_runtime.hpp"
#include "ttnn/operations/functions.hpp"
#include "ttnn/operations/numpy/functions.hpp"
#include "tt_metal/impl/event/event.hpp"
#include <cmath>

Expand Down
2 changes: 1 addition & 1 deletion tests/ttnn/unit_tests/gtests/test_multi_cq_multi_dev.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#include "ttnn/deprecated/tt_dnn/op_library/moreh_sum/moreh_sum_op.hpp"
#include "common/bfloat16.hpp"
#include "ttnn/async_runtime.hpp"
#include "ttnn/operations/functions.hpp"
#include "ttnn/operations/numpy/functions.hpp"
#include "tt_metal/impl/event/event.hpp"
#include <cmath>

Expand Down
2 changes: 1 addition & 1 deletion tests/ttnn/unit_tests/gtests/test_multiprod_queue.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#include "ttnn/deprecated/tt_dnn/op_library/moreh_sum/moreh_sum_op.hpp"
#include "common/bfloat16.hpp"
#include "ttnn/async_runtime.hpp"
#include "ttnn/operations/functions.hpp"
#include "ttnn/operations/numpy/functions.hpp"
#include "tt_metal/impl/event/event.hpp"
#include <cmath>
#include <thread>
Expand Down
2 changes: 1 addition & 1 deletion tests/ttnn/unit_tests/gtests/test_repeat_interleave.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#include "ttnn/operations/core/core.hpp"
#include "ttnn/async_runtime.hpp"
#include "ttnn/operations/data_movement/repeat_interleave/repeat_interleave.hpp"
#include "ttnn/operations/functions.hpp"
#include "ttnn/operations/numpy/functions.hpp"
#include "tt_metal/common/logger.hpp"

#include "ttnn_test_fixtures.hpp"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include "ttnn/deprecated/tt_dnn/op_library/moreh_matmul/moreh_matmul_op.hpp"
#include "tt_metal/common/work_split.hpp"
#include "ttnn/deprecated/tt_dnn/op_library/moreh_helper_functions.hpp"
#include "ttnn/operations/functions.hpp"
#include "ttnn/operations/numpy/functions.hpp"
#include "tt_metal/common/constants.hpp"
#include "tt_metal/common/bfloat16.hpp"
#include "tt_metal/detail/util.hpp"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#include "ttnn/deprecated/tt_dnn/op_library/moreh_helper_functions.hpp"
#include "ttnn/deprecated/tt_dnn/op_library/moreh_norm_backward/moreh_norm_backward_op.hpp"
#include "tt_metal/common/work_split.hpp"
#include "ttnn/operations/functions.hpp"
#include "ttnn/operations/numpy/functions.hpp"
#include "tt_metal/detail/util.hpp"
#include "tt_metal/host_api.hpp"

Expand Down
2 changes: 1 addition & 1 deletion ttnn/cpp/ttnn/operations/creation.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include "ttnn/tensor/tensor.hpp"
#include "ttnn/tensor/tensor_utils.hpp"
#include "ttnn/tensor/types.hpp"
#include "ttnn/operations/functions.hpp"
#include "ttnn/operations/numpy/functions.hpp"
#include "tt_metal/impl/dispatch/command_queue.hpp"
#include "ttnn/core.hpp"
#include "ttnn/decorators.hpp"
Expand Down
2 changes: 1 addition & 1 deletion ttnn/cpp/ttnn/operations/data_movement/reshape/reshape.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include "ttnn/run_operation.hpp"
#include "reshape.hpp"
#include "tt_metal/common/constants.hpp"
#include <ttnn/operations/functions.hpp>
#include <ttnn/operations/numpy/functions.hpp>
#include "ttnn/operations/experimental/auto_format/auto_format.hpp"
#include "ttnn/tensor/tensor_utils.hpp"
#include "device/reshape_op.hpp"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#include "tt_metal/common/bfloat16.hpp"
#include "ttnn/operations/data_movement/reshape/reshape.hpp"
#include "ttnn/operations/data_movement/bcast/bcast.hpp"
#include "ttnn/operations/functions.hpp"
#include "ttnn/operations/numpy/functions.hpp"
#include "ttnn/operations/data_movement/slice/slice.hpp"
#include "ttnn/operations/eltwise/unary/unary_composite.hpp"
#include "ttnn/operations/eltwise/binary/binary_composite.hpp"
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#include "prod_op_all.hpp"
#include "ttnn/operations/eltwise/unary/unary.hpp"
#include "tt_metal/common/constants.hpp"
#include <ttnn/operations/functions.hpp>
#include <ttnn/operations/numpy/functions.hpp>
#include "tt_metal/host_api.hpp"
#include "tt_metal/tools/profiler/op_profiler.hpp"

Expand Down
2 changes: 1 addition & 1 deletion ttnn/cpp/ttnn/operations/reduction/prod/prod.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#include "ttnn/cpp/ttnn/operations/creation.hpp"
#include "ttnn/operations/data_movement/slice/slice.hpp"
#include "ttnn/operations/data_movement/permute/permute.hpp"
#include "ttnn/operations/functions.hpp"
#include "ttnn/operations/numpy/functions.hpp"
#include "ttnn/types.hpp"
#include "ttnn/common/constants.hpp"

Expand Down

0 comments on commit 037a3a9

Please sign in to comment.