MCPcopy Create free account
hub / github.com/SJTU-DENG-Lab/WLA / ProcessorWrapper

Class ProcessorWrapper

trainer_utils.py:9–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7
8
9class ProcessorWrapper:
10 def __init__(self, processor):
11 self.processor = processor
12
13 def __call__(self, tensor):
14 return self.processor(tensor, return_tensors="pt")["pixel_values"].squeeze(0)
15
16
17def possible_override_args(override_args, *args):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected