Skip to content

Commit

Permalink
#4003: restructure ttnn
Browse files Browse the repository at this point in the history
  • Loading branch information
arakhmati committed Jan 25, 2024
1 parent 8cb1535 commit 92268bc
Show file tree
Hide file tree
Showing 45 changed files with 1,553 additions and 1,502 deletions.
4 changes: 3 additions & 1 deletion docs/aspell-dictionary.pws
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
personal_ws-1.1 en 455
personal_ws-1.1 en 457
ABI
ADDI
API
Expand Down Expand Up @@ -137,6 +137,7 @@ TRISC
TSLICE
TTNN
TTNN's
TensTorrent's
TensorMemoryLayout
Tensorflow
Tenstorrent
Expand Down Expand Up @@ -421,6 +422,7 @@ triscs
tt
ttDNN
ttnn
ttnn's
txt
ublock
ublocks
Expand Down
11 changes: 6 additions & 5 deletions docs/source/ttnn/about.rst
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
What is TTNN?
What is ttnn?
#############

TTNN is a Python library that provides a user-friendly interface to ``TT-METAL``.
The TTNN library assumes the user is familiar with `PyTorch <https://pytorch.org/>`_ and provides
operations that easily translate `PyTorch <https://pytorch.org/>`_ tensors to ``ttnn.Tensor(s)``.
TTNN's primary dependency is :doc:`TT-LIB </ttnn/dependencies/tt_lib>`.
ttnn is a library that provides a user-friendly interface to operations that run on TensTorrent's hardware using ``tt-metal`` programming model.

ttnn is designed to be intuitive to an user that is familiar with `PyTorch <https://pytorch.org/>`_.

ttnn's primary dependency is :doc:`TT-LIB </ttnn/dependencies/tt_lib>` which provides the implementation for all of the operations used by ttnn.

We trust that this library will be valuable to helping you on your journey to take full advantage of our devices!
4 changes: 3 additions & 1 deletion module.mk
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,8 @@ LIBS_TO_BUILD =
ifdef TT_METAL_ENV_IS_DEV
LIBS_TO_BUILD += \
python_env/dev \
git_hooks
git_hooks \
ttnn/dev_install
endif

LIBS_TO_BUILD += \
Expand All @@ -144,6 +145,7 @@ include $(UMD_HOME)/device/module.mk
include $(TT_METAL_HOME)/tt_metal/common/common.mk
include $(TT_METAL_HOME)/tt_metal/module.mk
include $(TT_METAL_HOME)/tt_eager/module.mk
include $(TT_METAL_HOME)/ttnn/module.mk
include $(TT_METAL_HOME)/tt_metal/python_env/module.mk
include $(TT_METAL_HOME)/tests/module.mk

Expand Down
3 changes: 1 addition & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ def is_editable_install_(self):
# Include tt_metal_C for kernels and src/ and tools
# And any kernels inside `tt_eager/tt_dnn. We must keep all ops kernels inside
# tt_dnn
packages = ["tt_lib", "tt_lib.tt_metal", "tt_lib.models", "tt_lib.scripts", "tt_lib.tt_eager.tt_dnn", "ttnn"]
packages = ["tt_lib", "tt_lib.tt_metal", "tt_lib.models", "tt_lib.scripts", "tt_lib.tt_eager.tt_dnn"]

# Empty sources in order to force a BUDAEagerBuild execution
buda_eager_lib_C = Extension("tt_lib._C", sources=[])
Expand All @@ -172,7 +172,6 @@ def is_editable_install_(self):
"tt_lib.models": "models",
"tt_lib.scripts": "scripts",
"tt_lib.tt_eager.tt_dnn": "tt_eager/tt_dnn",
"ttnn": "ttnn",
},
include_package_data=True,
long_description_content_type="text/markdown",
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
82 changes: 0 additions & 82 deletions ttnn/binary.py

This file was deleted.

Loading

0 comments on commit 92268bc

Please sign in to comment.