Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/HobbitLong/PyContrast
/ cuda
Method
cuda
pycontrast/memory/alias_multinomial.py:45–47 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
43
self.prob[last_one] = 1
44
45
def
cuda(self):
46
self.prob = self.prob.cuda()
47
self.alias = self.alias.cuda()
48
49
def
draw(self, N):
50
""
"
Callers
15
main_worker
Function · 0.80
main_worker
Function · 0.80
__init__
Method · 0.80
forward
Method · 0.80
__init__
Method · 0.80
forward
Method · 0.80
_update_memory
Method · 0.80
forward
Method · 0.80
forward
Method · 0.80
__init__
Method · 0.80
__call__
Method · 0.80
wrap_up
Method · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected