Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/GanjinZero/BioBART
/ move_batch
Method
move_batch
pretrain_src/model.py:40–41 ·
view source on GitHub ↗
(self, batch, non_blocking=False)
Source
from the content-addressed store, hash-verified
38
map_location=
lambda
storage, loc: storage))
39
40
def
move_batch(self, batch, non_blocking=False):
41
return
batch.to(self.device, non_blocking)
42
43
def
eval(self):
44
self.network.eval()
Callers
nothing calls this directly
Calls
1
to
Method · 0.80
Tested by
no test coverage detected