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

Method __init__

timm/data/transforms.py:27–28  ·  view source on GitHub ↗
(self, dtype=torch.float32)

Source from the content-addressed store, hash-verified

25class ToTensor:
26
27 def __init__(self, dtype=torch.float32):
28 self.dtype = dtype
29
30 def __call__(self, pil_img):
31 np_img = np.array(pil_img, dtype=np.uint8)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected