MCPcopy Create free account
hub / github.com/SpenserCai/sd-webui-deoldify / proc_batch

Method proc_batch

fastai/basic_data.py:67–71  ·  view source on GitHub ↗

Process batch `b` of `TensorImage`.

(self,b:Tensor)

Source from the content-addressed store, hash-verified

65 self.collate_fn)
66
67 def proc_batch(self,b:Tensor)->Tensor:
68 "Process batch `b` of `TensorImage`."
69 b = to_device(b, self.device)
70 for f in listify(self.tfms): b = f(b)
71 return b
72
73 def __iter__(self):
74 "Process and returns items from `DataLoader`."

Callers 1

__iter__Method · 0.95

Calls 2

to_deviceFunction · 0.85
listifyFunction · 0.85

Tested by

no test coverage detected