Skip to content

Commit

Permalink
#12552: Fix indentation pybind files (#12543)
Browse files Browse the repository at this point in the history
#11691: Fix indentation pybind files
  • Loading branch information
KalaivaniMCW authored Sep 12, 2024
1 parent b305e29 commit bbfec73
Show file tree
Hide file tree
Showing 7 changed files with 839 additions and 843 deletions.
4 changes: 2 additions & 2 deletions ttnn/cpp/pybind11/__init__.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ PYBIND11_MODULE(_ttnn, module) {
auto m_operations = module.def_submodule("operations", "ttnn Operations");

// TYPES
ttnn::tensor::py_module_types(m_tensor);
ttnn::tensor::tensor_mem_config_module_types(m_tensor);
ttnn::tensor::pytensor_module_types(m_tensor);
ttnn::graph::py_graph_module_types(m_graph);

Expand All @@ -63,7 +63,7 @@ PYBIND11_MODULE(_ttnn, module) {
ttnn::reports::py_module_types(m_reports);

// FUNCTIONS / OPERATIONS
ttnn::tensor::py_module(m_tensor);
ttnn::tensor::tensor_mem_config_module(m_tensor);
ttnn::tensor::pytensor_module(m_tensor);
ttnn::core::py_module(m_core);
ttnn::graph::py_graph_module(m_graph);
Expand Down
4 changes: 2 additions & 2 deletions ttnn/cpp/pybind11/device.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ namespace py = pybind11;

namespace ttnn::device {

void py_device_module_types(py::module& module);
void py_device_module(py::module& module);
void py_device_module_types(py::module& module);
void py_device_module(py::module& module);

} // namespace ttnn::device
4 changes: 2 additions & 2 deletions ttnn/cpp/pybind11/events.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace py = pybind11;

namespace ttnn::events {

void py_module_types(py::module& module);
void py_module(py::module& module);
void py_module_types(py::module& module);
void py_module(py::module& module);

} // namespace ttnn::events
2 changes: 1 addition & 1 deletion ttnn/cpp/pybind11/profiler.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ namespace py = pybind11;

namespace ttnn::profiler {

void py_module(py::module& module);
void py_module(py::module& module);

} // namespace ttnn::profiler
1,652 changes: 826 additions & 826 deletions ttnn/cpp/pybind11/pytensor.cpp

Large diffs are not rendered by default.

8 changes: 2 additions & 6 deletions ttnn/cpp/pybind11/tensor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ void implement_buffer_protocol(py::module& m_tensor, std::string_view name) {

} // namespace detail

void py_module_types(py::module& m_tensor) {
void tensor_mem_config_module_types(py::module& m_tensor) {
export_enum<Layout>(m_tensor);
export_enum<DataType>(m_tensor);
export_enum<StorageType>(m_tensor);
Expand Down Expand Up @@ -115,7 +115,7 @@ void py_module_types(py::module& m_tensor) {

}

void tensor_module(py::module& m_tensor) {
void tensor_mem_config_module(py::module& m_tensor) {
using tt::tt_metal::Shape;

auto py_core_coord = static_cast<py::class_<CoreCoord>>(m_tensor.attr("CoreCoord"));
Expand Down Expand Up @@ -291,8 +291,4 @@ void tensor_module(py::module& m_tensor) {
}


void py_module(py::module& module) {
tensor_module(module);
}

} // namespace ttnn::tensor
8 changes: 4 additions & 4 deletions ttnn/cpp/pybind11/tensor.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ namespace py = pybind11;

namespace ttnn::tensor {

void pytensor_module_types(pybind11::module & m_tensor);
void pytensor_module(pybind11::module & m_tensor);
void py_module_types(py::module& module);
void py_module(py::module& module);
void pytensor_module_types(py::module & m_tensor);
void pytensor_module(py::module & m_tensor);
void tensor_mem_config_module_types(py::module& module);
void tensor_mem_config_module(py::module& module);

} // namespace ttnn::tensor

0 comments on commit bbfec73

Please sign in to comment.