MCPcopy 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_workerFunction · 0.80
main_workerFunction · 0.80
__init__Method · 0.80
forwardMethod · 0.80
__init__Method · 0.80
forwardMethod · 0.80
_update_memoryMethod · 0.80
forwardMethod · 0.80
forwardMethod · 0.80
__init__Method · 0.80
__call__Method · 0.80
wrap_upMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected