EthernetConfigAttr
TT EthernetConfig attribute
Syntax:
#ttkernel.ethernet_config<
EthType, # eth_type
NocIndex # noc_index
>
TT ethernet_config attribute
Parameters:
Parameter | C++ type | Description |
---|---|---|
eth_type | EthType | |
noc_index | NocIndex |
NocConfigAttr
TT NocConfig attribute
Syntax:
#ttkernel.noc_config<
NocIndex # noc_index
>
TT noc_config attribute
Parameters:
Parameter | C++ type | Description |
---|---|---|
noc_index | NocIndex |
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:
Parameter | C++ type | Description |
---|---|---|
value | ::mlir::tt::ttkernel::ReduceDim | an 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:
Parameter | C++ type | Description |
---|---|---|
value | ::mlir::tt::ttkernel::ReduceType | an 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:
Parameter | C++ type | Description |
---|---|---|
math_fidelity | MathFidelity | |
fp32_dest_acc_en | bool | |
math_approx_mode | bool | |
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:
Parameter | C++ type | Description |
---|---|---|
value | ::mlir::tt::ttkernel::ThreadType | an enum of type ThreadType |