Sparse operators¶
- torch_lattice.operators.cat(inputs, *, join='inner')[source]¶
- Return type:
- Parameters:
inputs (list[SparseTensor])
join (Literal['inner', 'left', 'right', 'outer'])
- torch_lattice.operators.generative_add(a, b)[source]¶
- Return type:
- Parameters:
a (SparseTensor)
b (SparseTensor)
- torch_lattice.operators.sparse_add(lhs, rhs, *, join='outer', lhs_fill=0.0, rhs_fill=0.0)[source]¶
- Return type:
- Parameters:
lhs (SparseTensor)
rhs (SparseTensor)
join (Literal['inner', 'left', 'right', 'outer'])
lhs_fill (float)
rhs_fill (float)
- torch_lattice.operators.sparse_binary(lhs, rhs, op, *, join='outer', lhs_fill=0.0, rhs_fill=0.0)[source]¶
- Return type:
- Parameters:
lhs (SparseTensor)
rhs (SparseTensor)
op (Literal['add', 'sub', 'mul', 'maximum', 'minimum'])
join (Literal['inner', 'left', 'right', 'outer'])
lhs_fill (float)
rhs_fill (float)
- torch_lattice.operators.sparse_cat(inputs, *, join='inner')[source]¶
- Return type:
- Parameters:
inputs (list[SparseTensor])
join (Literal['inner', 'left', 'right', 'outer'])
- torch_lattice.operators.sparse_maximum(lhs, rhs, *, join='inner', lhs_fill=0.0, rhs_fill=0.0)[source]¶
- Return type:
- Parameters:
lhs (SparseTensor)
rhs (SparseTensor)
join (Literal['inner', 'left', 'right', 'outer'])
lhs_fill (float)
rhs_fill (float)
- torch_lattice.operators.sparse_minimum(lhs, rhs, *, join='inner', lhs_fill=0.0, rhs_fill=0.0)[source]¶
- Return type:
- Parameters:
lhs (SparseTensor)
rhs (SparseTensor)
join (Literal['inner', 'left', 'right', 'outer'])
lhs_fill (float)
rhs_fill (float)
- torch_lattice.operators.sparse_mul(lhs, rhs, *, join='inner', lhs_fill=0.0, rhs_fill=0.0)[source]¶
- Return type:
- Parameters:
lhs (SparseTensor)
rhs (SparseTensor)
join (Literal['inner', 'left', 'right', 'outer'])
lhs_fill (float)
rhs_fill (float)
- torch_lattice.operators.sparse_sub(lhs, rhs, *, join='outer', lhs_fill=0.0, rhs_fill=0.0)[source]¶
- Return type:
- Parameters:
lhs (SparseTensor)
rhs (SparseTensor)
join (Literal['inner', 'left', 'right', 'outer'])
lhs_fill (float)
rhs_fill (float)