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

Method __init__

trainer_utils.py:10–11  ·  view source on GitHub ↗
(self, processor)

Source from the content-addressed store, hash-verified

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)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected