MCPcopy Create free account
hub / github.com/QWTforGithub/T2LDM / _normalize

Method _normalize

timm/data/dataset.py:140–141  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

138 self._set_transforms(x)
139
140 def _normalize(self, x):
141 return x if self.normalize is None else self.normalize(x)
142
143 def __getitem__(self, i):
144 x, y = self.dataset[i] # all splits share the same dataset base transform

Callers 1

__getitem__Method · 0.95

Calls 1

normalizeMethod · 0.80

Tested by

no test coverage detected