MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / get_pad_witdth

Method get_pad_witdth

imperative/python/megengine/module/conv.py:406–412  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

404 return (1, self.out_channels, 1, 1)
405
406 def get_pad_witdth(self):
407 return (
408 (0, 0),
409 (0, 0),
410 (self.padding[0], self.padding[0]),
411 (self.padding[1], self.padding[1]),
412 )
413
414 def calc_conv(self, inp, weight, bias):
415 assert self.padding_mode in [

Callers 2

calc_convMethod · 0.95
calc_conv_quantizedMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected