MCPcopy Create free account
hub / github.com/NVIDIA/cutlass / from_sizes

Method from_sizes

python/cutlass_cppgen/shape.py:170–184  ·  view source on GitHub ↗
(input_size, weight_size)

Source from the content-addressed store, hash-verified

168
169 @staticmethod
170 def from_sizes(input_size, weight_size):
171 K, R, S, _ = weight_size
172 pad_h = R // 2
173 pad_w = S // 2
174 stride_h = 1
175 stride_w = 1
176 dilation_h = 1
177 dilation_w = 1
178 return Conv2DProblemSize(
179 *input_size,
180 *weight_size,
181 pad_h, pad_w,
182 stride_h, stride_w,
183 dilation_h, dilation_w
184 )

Callers 1

Calls 1

Conv2DProblemSizeClass · 0.85

Tested by

no test coverage detected