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

Method forward

imperative/python/megengine/module/vision.py:751–755  ·  view source on GitHub ↗
(self, inp)

Source from the content-addressed store, hash-verified

749 self.horizontal = horizontal
750
751 def forward(self, inp):
752 assert isinstance(
753 inp, Tensor
754 ), "expected input is megengine.Tensor, got {}".format(type(inp))
755 return flip(inp, self.vertical, self.horizontal)
756
757
758class RandomHorizontalFlip(Module):

Callers

nothing calls this directly

Calls 2

flipFunction · 0.90
formatMethod · 0.45

Tested by

no test coverage detected