MCPcopy Create free account
hub / github.com/KnowingNothing/MatmulTutorial / __setitem__

Method __setitem__

cutlass.py/tiling.py:30–35  ·  view source on GitHub ↗
(self, key: int, value: Union[int, IntegerType])

Source from the content-addressed store, hash-verified

28 return self.dimensions[key]
29
30 def __setitem__(self, key: int, value: Union[int, IntegerType]):
31 assert key >= 0 and key < self.ndim
32 assert (
33 isinstance(value, IntegerType) or value > 0
34 ), "Static dim value should be > 0."
35 self.dimensions[key] = value
36
37 def __len__(self):
38 return self.ndim

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected