func.apply
← func dialect
Compile-time implementation demand. Contract key must be selected before executable lowering.
Operation contract
| Property |
Value |
| Semantic phase |
— |
| Traits |
UnknownEffects |
Signature
| Kind |
Name |
Type |
Cardinality |
Description |
| Operand |
operands |
any |
variadic |
— |
| Result |
results |
any |
variadic |
— |
| Attribute |
contract |
string |
required |
— |
| Attribute |
purity |
enum Purity |
optional |
— |
| Attribute |
temperature |
enum Temperature |
optional |
— |
Examples
%r = func.apply<qwen.q4.matmul>(%w, %x) : (tensor<16x32xi8>, tensor<32xf32>) -> (tensor<16xf32>)
%r = func.apply<qwen.q4.matmul>(%w, %x) pure : (tensor<16x32xi8>, tensor<32xf32>) -> (tensor<16xf32>)
%r = func.apply<qwen.q4.matmul>(%w, %x) hot : (tensor<16x32xi8>, tensor<32xf32>) -> (tensor<16xf32>)