MCPcopy
hub / github.com/vladmandic/sdnext / t

Method t

modules/sharpfin/sparse_backend.py:204–219  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

202 self.block_offsets_t.clone())
203
204 def t(self):
205 if self.dim() != 2:
206 raise ValueError(
207 "t() expects a tensor with <= 2 dimensions, "
208 f"but self is {self.dim()}D.")
209 out = Matrix(self.size(),
210 self.data,
211 self.row_indices,
212 self.column_indices,
213 self.offsets,
214 self.column_indices_t,
215 self.offsets_t,
216 self.block_offsets_t)
217 out._transposed = not self._transposed
218 out._size = torch.Size((self._size[1], self._size[0]))
219 return out
220
221 def contiguous(self):
222 raise ValueError("Not yet implemented.")

Callers 15

gradMethod · 0.95
devices_mac.pyFile · 0.45
dequantize_asymmetricFunction · 0.45
dequantize_symmetricFunction · 0.45
re_quantize_int_mmFunction · 0.45
fp16_matmulFunction · 0.45
check_matsFunction · 0.45
fp8_matmulFunction · 0.45
int8_matmulFunction · 0.45
fp8_matmul_tensorwiseFunction · 0.45
conv_fp8_matmulFunction · 0.45

Calls 3

dimMethod · 0.95
sizeMethod · 0.95
MatrixClass · 0.85

Tested by

no test coverage detected