Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
normalize
Method · 0.80
Tested by
no test coverage detected