Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MegEngine/MegEngine
/ sample
Method
sample
imperative/python/megengine/module/vision.py:637–638 ·
view source on GitHub ↗
(self, batch)
Source
from the content-addressed store, hash-verified
635
self.custom_func = custom.cutmix_forward()
636
637
def
sample(self, batch):
638
return
self.beta_func(self.beta, self.beta, size=(batch,))
639
640
def
forward(self, data1, label1, data2, label2):
641
assert all(
Callers
1
forward
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected