Skip to content

Commit

Permalink
#10382: Update type 2 complex files
Browse files Browse the repository at this point in the history
  • Loading branch information
Aswinmcw committed Jul 20, 2024
1 parent 0ad8dda commit ac6b8c4
Show file tree
Hide file tree
Showing 6 changed files with 629 additions and 452 deletions.
2 changes: 1 addition & 1 deletion docs/source/ttnn/ttnn/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ Pointwise Unary
ttnn/angle_bw
ttnn/conj_bw
ttnn/conj
ttmm/polar
ttnn/polar

Pointwise Binary
================
Expand Down
25 changes: 25 additions & 0 deletions docs/source/ttnn/ttnn/dependencies/tt_lib.rst
Original file line number Diff line number Diff line change
Expand Up @@ -540,6 +540,31 @@ Complex Operations

The following functions are available,


Complex arithmetic can be carried out for multiply, divide, add and subtract as follows:

.. autofunction:: tt_lib.tensor.complex_add

.. autofunction:: tt_lib.tensor.complex_sub

.. autofunction:: tt_lib.tensor.complex_mul

.. autofunction:: tt_lib.tensor.complex_div

and then unary operations for,

.. autofunction:: tt_lib.tensor.real

.. autofunction:: tt_lib.tensor.imag

.. autofunction:: tt_lib.tensor.complex_abs

.. autofunction:: tt_lib.tensor.conj

.. autofunction:: tt_lib.tensor.complex_recip

.. autofunction:: tt_lib.tensor.polar

Complex Operations (Type 2)
===========================
Type 2 Complex representation allows for more flexible storage than earlier one while providing same set of
Expand Down
Loading

0 comments on commit ac6b8c4

Please sign in to comment.