mirror of
https://github.com/ROCm/jax.git
synced 2025-04-16 11:56:07 +00:00
Fix type annotation for bcoo_update_layout.
PiperOrigin-RevId: 493567424
This commit is contained in:
parent
ac72346ad3
commit
6e0c8029cc
@ -1565,7 +1565,7 @@ mlir.register_lowering(bcoo_sum_duplicates_p, _bcoo_sum_duplicates_mhlo)
|
||||
# BCOO functions that maybe should be primitives?
|
||||
|
||||
def bcoo_update_layout(mat: BCOO, *, n_batch: Optional[int] = None, n_dense: Optional[int] = None,
|
||||
on_inefficient: str = 'error') -> BCOO:
|
||||
on_inefficient: Optional[str] = 'error') -> BCOO:
|
||||
"""Update the storage layout (i.e. n_batch & n_dense) of a BCOO matrix.
|
||||
|
||||
In many cases this can be done without introducing undue storage overhead. However,
|
||||
|
Loading…
x
Reference in New Issue
Block a user