MCPcopy Create free account
hub / github.com/dek924/PerX2CT / encode

Method encode

taming/modules/util.py:110–114  ·  view source on GitHub ↗
(self, c)

Source from the content-addressed store, hash-verified

108 self.quantize_interface = quantize_interface
109
110 def encode(self, c):
111 c = c[:,None]
112 if self.quantize_interface:
113 return c, None, [None, None, c.long()]
114 return c
115
116
117class SOSProvider(AbstractEncoder):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected