jax.experimental.sparse.CSR#
- class jax.experimental.sparse.CSR(args, *, shape)[源代码]#
在 JAX 中实现的实验性 CSR 矩阵。
注意:此类与 JAX 转换(如 grad 和 autodiff)的兼容性极低,并且提供的功能很少。通常,您应该优先选择
jax.experimental.sparse.BCOO
。此外,在 nse 大于所表示矩阵中非零值的真实数量的情况下,存在已知的失败。这种情况在 BCOO 中可以得到更好的处理。
- 参数:
shape (tuple[int, int])
方法
__init__
(args, *, shape)block_until_ready
()fromdense
(mat, *[, nse, index_dtype])sum
(*args, **kwargs)todense
()transpose
([axes])tree_flatten
()tree_unflatten
(aux_data, children)属性
T
dtype
ndim
nse
size
data
indices
indptr
shape