MCPcopy Create free account
hub / github.com/tensorpack/tensorpack / maybe_reverse_pad

Function maybe_reverse_pad

examples/FasterRCNN/modeling/backbone.py:59–62  ·  view source on GitHub ↗
(topleft, bottomright)

Source from the content-addressed store, hash-verified

57
58
59def maybe_reverse_pad(topleft, bottomright):
60 if cfg.BACKBONE.TF_PAD_MODE:
61 return [topleft, bottomright]
62 return [bottomright, topleft]
63
64
65@contextmanager

Callers 3

resnet_bottleneckFunction · 0.85
resnet_c4_backboneFunction · 0.85
resnet_fpn_backboneFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…