Skip to content

Commit

Permalink
Fix FlatSymbolRefAttr (#732)
Browse files Browse the repository at this point in the history
FlatSymbolRefAttr creation was failing when exporting with `iree` at
head due to LLVM changes.
  • Loading branch information
renxida authored Dec 31, 2024
1 parent f5e9cb4 commit ffb0dd2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions sharktank/sharktank/kernels/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,7 @@ def _get_jinja2_env() -> Environment:


def call_function(target_function: Operation, *operands: Value) -> Sequence[Value]:
target_symbol = FlatSymbolRefAttr.get(
StringAttr(target_function.attributes["sym_name"]).value_bytes
)
target_symbol = FlatSymbolRefAttr.get(target_function.attributes["sym_name"].value)
ftype = FunctionType(TypeAttr(target_function.attributes["function_type"]).value)
operands = [i for i in operands if i is not None]
return Operation.create(
Expand Down

0 comments on commit ffb0dd2

Please sign in to comment.