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:567–568 ·
view source on GitHub ↗
(self, batch)
Source
from the content-addressed store, hash-verified
565
self.beta = beta
566
567
def
sample(self, batch):
568
return
self.beta_func(self.beta, self.beta, size=(batch,))
569
570
def
forward(self, data1, label1, data2, label2):
571
assert all(
Callers
3
forward
Method · 0.95
test_advance_indexing_with_bool
Function · 0.45
test_exponential
Function · 0.45
Calls
no outgoing calls
Tested by
2
test_advance_indexing_with_bool
Function · 0.36
test_exponential
Function · 0.36