Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TimSeizinger/Bokehlicious
/ preprocess_batch
Function
preprocess_batch
evaluate.py:23–27 ·
view source on GitHub ↗
(batch)
Source
from the content-addressed store, hash-verified
21
av_dict[key] = [value]
22
23
def
preprocess_batch(batch):
24
for
k, v in batch.items():
25
if
isinstance(v, Tensor):
26
batch[k] = v.unsqueeze(0).cuda()
27
return
batch
28
29
if
__name__ ==
"__main__"
:
30
parser = get_eval_parser()
Callers
1
evaluate.py
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected