jax.experimental.sparse.BCSR#
- class jax.experimental.sparse.BCSR(args, *, shape, indices_sorted=False, unique_indices=False)[源代码]#
JAX 中实现的实验性批量 CSR 矩阵。
方法
__init__(args, *, shape[, indices_sorted, ...])block_until_ready()from_bcoo(arr)from_scipy_sparse(mat, *[, index_dtype, ...])从
scipy.sparse数组创建 BCSR 数组。fromdense(mat, *[, nse, index_dtype, ...])从 (密集)
Array创建 BCSR 数组。sum(*args, **kwargs)sum_duplicates([nse, remove_zeros])返回一个复制件,其中重复的索引已求和。
to_bcoo()todense()创建数组的密集版本。
transpose(*args, **kwargs)tree_flatten()tree_unflatten(aux_data, children)属性
Tdtypen_batchn_densen_sparsendimnsesizedataindicesindptrshapeindices_sortedunique_indices