MCPcopy Create free account
hub / github.com/LargeWorldModel/LWM / _encode

Method _encode

lwm/vqgan.py:33–40  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

31
32 @cached_property
33 def _encode(self):
34 def fn(pixel_values, params):
35 return self.model.apply(
36 {'params': params},
37 pixel_values,
38 method=self.model.encode
39 )
40 return partial(self._wrap_fn(fn), params=self.params)
41
42 @cached_property
43 def _decode(self):

Callers 1

encodeMethod · 0.95

Calls 1

_wrap_fnMethod · 0.95

Tested by

no test coverage detected