EthernetConfigAttr

TT EthernetConfig attribute

Syntax:

#ttkernel.ethernet_config<
  EthType,   # eth_type
  NocIndex   # noc_index
>

TT ethernet_config attribute

Parameters:

ParameterC++ typeDescription
eth_typeEthType
noc_indexNocIndex

NocConfigAttr

TT NocConfig attribute

Syntax:

#ttkernel.noc_config<
  NocIndex   # noc_index
>

TT noc_config attribute

Parameters:

ParameterC++ typeDescription
noc_indexNocIndex

ReduceDimAttr

TTKernel Reduce Dimensions

Syntax:

#ttkernel.reduce_dim<
  ::mlir::tt::ttkernel::ReduceDim   # value
>

Enum cases:

  • reduce_dim_row (Row)
  • reduce_dim_col (Col)
  • reduce_dim_scalar (Scalar)
  • reduce_dim_none (None)

Parameters:

ParameterC++ typeDescription
value::mlir::tt::ttkernel::ReduceDiman enum of type ReduceDim

ReduceTypeAttr

TTKernel Reduce Types

Syntax:

#ttkernel.reduce_type<
  ::mlir::tt::ttkernel::ReduceType   # value
>

Enum cases:

  • reduce_sum (Sum)
  • reduce_max (Max)

Parameters:

ParameterC++ typeDescription
value::mlir::tt::ttkernel::ReduceTypean enum of type ReduceType

TensixConfigAttr

TT TensixConfig attribute

Syntax:

#ttkernel.tensix_config<
  MathFidelity,   # math_fidelity
  bool,   # fp32_dest_acc_en
  bool,   # math_approx_mode
  ::llvm::ArrayRef<UnpackToDestMode>   # unpack_to_dest_mode
>

TT compute_desc attribute

Parameters:

ParameterC++ typeDescription
math_fidelityMathFidelity
fp32_dest_acc_enbool
math_approx_modebool
unpack_to_dest_mode::llvm::ArrayRef<UnpackToDestMode>

ThreadTypeAttr

TTKernel ThreadTypes

Syntax:

#ttkernel.thread<
  ::mlir::tt::ttkernel::ThreadType   # value
>

Enum cases:

  • noc (Noc)
  • tensix (Tensix)
  • ethernet (Ethernet)

Parameters:

ParameterC++ typeDescription
value::mlir::tt::ttkernel::ThreadTypean enum of type ThreadType