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

Method num_elements_ge

cutlass.py/tiling.py:75–80  ·  view source on GitHub ↗

We can conclude if number of elements larger than a given value. Because all dimensions should be > 0.

(self, number: int)

Source from the content-addressed store, hash-verified

73 return math.prod(self.get_static_dims()) > number
74
75 def num_elements_ge(self, number: int):
76 """
77 We can conclude if number of elements larger than a given value.
78 Because all dimensions should be > 0.
79 """
80 return math.prod(self.get_static_dims()) >= number
81
82 def __repr__(self) -> str:
83 numbers = ",".join(map(str, self.dimensions))

Callers

nothing calls this directly

Calls 1

get_static_dimsMethod · 0.95

Tested by

no test coverage detected