Skip to content

Commit

Permalink
Revert "Extend the capabilities of the graph tooling to include extra…
Browse files Browse the repository at this point in the history
… information of the ttnn operations (#18380)"

This reverts commit a33d64a, which
broke ttnn unit tests 1.
  • Loading branch information
rayraykay committed Mar 6, 2025
1 parent 0c0def2 commit 87ab998
Show file tree
Hide file tree
Showing 15 changed files with 22 additions and 713 deletions.
2 changes: 0 additions & 2 deletions tests/ttnn/unit_tests/gtests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ set(TTNN_UNIT_TESTS_SRC
${CMAKE_CURRENT_SOURCE_DIR}/test_async_runtime.cpp
${CMAKE_CURRENT_SOURCE_DIR}/test_multiprod_queue.cpp
${CMAKE_CURRENT_SOURCE_DIR}/test_multi_cq_multi_dev.cpp
${CMAKE_CURRENT_SOURCE_DIR}/test_graph_capture_arguments_morehdot.cpp
${CMAKE_CURRENT_SOURCE_DIR}/test_graph_capture_arguments_transpose.cpp
${CMAKE_CURRENT_SOURCE_DIR}/test_graph_query_op_constraints.cpp
${CMAKE_CURRENT_SOURCE_DIR}/test_graph_query_op_runtime.cpp
${CMAKE_CURRENT_SOURCE_DIR}/test_reflect.cpp
Expand Down
113 changes: 0 additions & 113 deletions tests/ttnn/unit_tests/gtests/test_graph_capture_arguments_morehdot.cpp

This file was deleted.

This file was deleted.

22 changes: 0 additions & 22 deletions tests/ttnn/unit_tests/gtests/ttnn_test_fixtures.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@

#include "ttnn/device.hpp"
#include "ttnn/types.hpp"
#include "ttnn/tensor/tensor.hpp"
#include "ttnn/tensor/tensor_impl.hpp"
#include "tests/tt_metal/test_utils/env_vars.hpp"
#include <tt-metalium/host_api.hpp>
#include "hostdevcommon/common_values.hpp"
Expand Down Expand Up @@ -55,26 +53,6 @@ class TTNNFixtureWithDevice : public TTNNFixture {
tt::tt_metal::IDevice& getDevice() { return *device_; }
};

struct CreateTensorParameters {
ttnn::Shape input_shape;
DataType dtype;
Layout layout;
MemoryConfig mem_cfg;
};

class TTNNFixtureWithTensor : public TTNNFixtureWithDevice, public testing::WithParamInterface<CreateTensorParameters> {
protected:
[[nodiscard]] const Tensor CreateTensor() {
CreateTensorParameters params = GetParam();
TensorSpec tensor_spec(
params.input_shape, TensorLayout(params.dtype, PageConfig(params.layout), params.mem_cfg));
auto input_buffer = tt::tt_metal::tensor_impl::allocate_buffer_on_device(device_, tensor_spec);
auto input_storage = tt::tt_metal::DeviceStorage{input_buffer};
Tensor input_tensor = Tensor(input_storage, params.input_shape, params.dtype, params.layout);
return std::move(input_tensor);
}
};

} // namespace ttnn

namespace ttnn::distributed::test {
Expand Down
Loading

0 comments on commit 87ab998

Please sign in to comment.