MCPcopy Create free account
hub / github.com/Monalissaa/DisenDiff / dtype

Method dtype

clip/model.py:343–344  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

341
342 @property
343 def dtype(self):
344 return self.visual.conv1.weight.dtype
345
346 def encode_image(self, image):
347 return self.visual(image.type(self.dtype))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected