1. Introduction
  2. User Guide
  3. 1. Getting Started
    1. 1.1. Docker Notes
    2. 1.2. Ubuntu VM on macOS
  4. 2. Testing
    1. 2.1. Lit testing
    2. 2.2. EmitC testing
  5. 3. Tools
    1. 3.1. ttmlir-opt
    2. 3.2. ttmlir-translate
    3. 3.3. ttrt
    4. 3.4. ttir-builder
      1. 3.4.1. builder
      2. 3.4.2. Adding a TTIR op
    5. 3.5. stablehlo-builder
    6. 3.6. tt-explorer
      1. 3.6.1. UI & changes to Model Explorer
      2. 3.6.2. CLI
      3. 3.6.3. API usage & reference
      4. 3.6.4. Roadmap
    7. 3.7. tt-alchemist
    8. 3.8. ttnn-standalone
  6. 4. Optimizer
  7. 5. PyKernel
  8. 6. Creating bug repros for TTNN
  9. 7. Python Bindings
  10. 8. Flatbuffers
  11. 9. LLVM Dependency Update
  12. 10. CI
  13. 11. Additional Reading
  14. 12. Code of Conduct
  15. Code Documentation
  16. 13. Project Structure
  17. 14. Dialects Overview
  18. 15. Guidelines
    1. 15.1. Coding Guidelines
    2. 15.2. TTNN Dialect Guidelines
  19. 16. Adding an op
  20. 17. Decomposing an op in TTIR
  21. 18. Docs & Doxygen
  22. 19. Specifications
    1. 19.1. Runtime Stitching
    2. 19.2. Tensor Layout
    3. 19.3. Device
  23. Dialect Definitions
  24. 20. EmitPy
    1. 20.1. EmitPyOp
  25. 21. TTCore
    1. 21.1. TTCoreAttr
    2. 21.2. TTCoreOp
    3. 21.3. TTCoreType
  26. 22. TTIR
    1. 22.1. TTIROp
  27. 23. TTKernel
    1. 23.1. TTKernelAttr
    2. 23.2. TTKernelOp
    3. 23.3. TTKernelType
  28. 24. TTMetal
    1. 24.1. TTMetalOp
  29. 25. TTNN
    1. 25.1. TTNNOp

tt-mlir documentation

builder.apis

class builder.base.builder.TypeInfo(dtype: 'torch.dtype', scale: 'Optional[float]' = None, zero_point: 'Optional[int]' = None)

Bases: object

  • Parameters:
    • dtype (dtype)
    • scale (float | None)
    • zero_point (int | None)

dtype : dtype

scale : float | None = None

zero_point : int | None = None

class builder.base.builder.Golden(tensor: 'Union[torch.Tensor, ShardedTensor]', seed: 'Optional[int]' = None)

Bases: object

  • Parameters:
    • tensor (Tensor | ShardedTensor)
    • seed (int | None)

contiguous()

  • Return type: Golden

seed : int | None = None

tensor : Tensor | ShardedTensor

class builder.base.builder.GoldenCheckLevel(value)

Bases: Enum

An enumeration.

DISABLED = 1

GRAPH_LEVEL = 3

OP_LEVEL = 2

builder.base.builder.Operand

alias of Value | OpView | Operation

builder.base.builder.Shape

alias of List[int] | Tuple[int, …]