Skip to content

Commit

Permalink
Update to jax/jaxlib 0.4.2 (#48)
Browse files Browse the repository at this point in the history
There were some fixes required to update to jax 0.4.2. This includes
a change to GlobalOp initialization.
  • Loading branch information
rsuderman authored Jan 26, 2023
1 parent fa3e3d9 commit 26006ef
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions iree/jax/ir_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ def create_global(symbol_table: ir.SymbolTable,
visibility: str = "private",
initial_value: Optional[ir.Attribute] = None) -> str:
op = ml_program_d.GlobalOp(
sym_visibility=ir.StringAttr.get(visibility),
sym_name=ir.StringAttr.get(symbol),
type=ir.TypeAttr.get(ir_type),
ir.StringAttr.get(symbol),
ir.TypeAttr.get(ir_type),
is_mutable=ir.UnitAttr.get() if mutable else None,
value=initial_value,
sym_visibility=ir.StringAttr.get(visibility),
)
symbol_table.insert(op)
# Must get the symbol name after insert, since it may be renamed.
Expand Down
4 changes: 2 additions & 2 deletions version_info.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"iree-compiler": "20221121.334",
"iree-runtime": "20221121.334",
"iree-tools-xla": "20221121.334",
"jax": "0.4.1",
"jaxlib": "0.4.1"
"jax": "0.4.2",
"jaxlib": "0.4.2"
}
}

0 comments on commit 26006ef

Please sign in to comment.