Skip to content

Commit

Permalink
#4702: Update documentaion
Browse files Browse the repository at this point in the history
  • Loading branch information
umadevimcw committed Oct 29, 2024
1 parent 3f46ec4 commit a6b7814
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
10 changes: 9 additions & 1 deletion ttnn/cpp/ttnn/operations/eltwise/binary/binary_pybind.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -731,7 +731,15 @@ void py_module(py::module& module) {
ttnn::add,
R"doc(Adds :attr:`input_tensor_a` to :attr:`input_tensor_b` and returns the tensor with the same layout as :attr:`input_tensor_a`)doc",
R"doc(\mathrm{{output\_tensor}}_i = (\mathrm{{input\_tensor\_a}}_i + \mathrm{{input\_tensor\_b}}_i))doc",
R"doc(: :code:`'None'` | :code:`'relu'`. )doc");
R"doc(: :code:`'None'` | :code:`'relu'`. )doc",
R"doc(Supported dtypes, layouts, and ranks:
+----------------------------+---------------------------------+-------------------+
| Dtypes | Layouts | Ranks |
+----------------------------+---------------------------------+-------------------+
| BFLOAT16, BFLOAT8_B | TILE | 2, 3, 4 |
+----------------------------+---------------------------------+-------------------+
)doc");

detail::bind_binary_inplace_operation(
module,
Expand Down
10 changes: 9 additions & 1 deletion ttnn/cpp/ttnn/operations/eltwise/unary/unary_pybind.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1604,7 +1604,15 @@ void py_module(py::module& module) {
| BFLOAT16, BFLOAT8_B | TILE | 2, 3, 4 |
+----------------------------+---------------------------------+-------------------+
)doc");
detail::bind_unary_operation_with_fast_and_approximate_mode(module, ttnn::gelu);
detail::bind_unary_operation_with_fast_and_approximate_mode(module, ttnn::gelu,
R"doc(Supported dtypes, layouts, and ranks:
+----------------------------+---------------------------------+-------------------+
| Dtypes | Layouts | Ranks |
+----------------------------+---------------------------------+-------------------+
| BFLOAT16, BFLOAT8_B | TILE | 2, 3, 4 |
+----------------------------+---------------------------------+-------------------+
)doc");
detail::bind_unary_operation_with_fast_and_approximate_mode(module, ttnn::rsqrt);

// Unaries with float parameter
Expand Down

0 comments on commit a6b7814

Please sign in to comment.