@@ -160,7 +160,7 @@ def strides_v2(p_dims: list[int], physical_shape: list[int]) -> list[int]:
160160
161161 Example:
162162 Imagine a vector of size 3, and of value [1, 2, 3].
163- Imagine a SST t of shape [3, 3] using this vector as physical and using [[0, 0]] as v_to_ps.
163+ Imagine a SLT t of shape [3, 3] using this vector as physical and using [[0, 0]] as v_to_ps.
164164 t.to_dense() is [1, 0, 0, 0, 2, 0, 0, 0, 3] (it's the flattening of the diagonal matrix
165165 [[1, 0, 0], [0, 2, 0], [0, 0, 3]]).
166166 When you move by 1 on physical dimension 0, you move by 4 on virtual dimension 0, i.e.
@@ -203,15 +203,15 @@ def to_sparse_latticed_tensor(t: Tensor) -> SparseLatticedTensor:
203203 if isinstance (t , SparseLatticedTensor ):
204204 return t
205205 else :
206- return make_sst (physical = t , basis = torch .eye (t .ndim , dtype = torch .int64 ))
206+ return make_slt (physical = t , basis = torch .eye (t .ndim , dtype = torch .int64 ))
207207
208208
209209def to_most_efficient_tensor (physical : Tensor , basis : Tensor ) -> Tensor :
210210 physical , basis = fix_dim_of_size_1 (physical , basis )
211211 physical , basis = fix_ungrouped_dims (physical , basis )
212212
213213 if (basis .sum (dim = 0 ) == 1 ).all ():
214- # TODO: this can be done more efficiently (without even creating the SST )
214+ # TODO: this can be done more efficiently (without even creating the SLT )
215215 return SparseLatticedTensor (physical , basis ).to_dense ()
216216 else :
217217 return SparseLatticedTensor (physical , basis )
@@ -264,7 +264,7 @@ def fix_ungrouped_dims(physical: Tensor, basis: Tensor) -> tuple[Tensor, Tensor]
264264 return nphysical , new_basis
265265
266266
267- def make_sst (physical : Tensor , basis : Tensor ) -> SparseLatticedTensor :
267+ def make_slt (physical : Tensor , basis : Tensor ) -> SparseLatticedTensor :
268268 """Fix physical and basis and create a SparseLatticedTensor with them."""
269269
270270 physical , basis = fix_dim_of_size_1 (physical , basis )
0 commit comments