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

Method __call__

lwm/vqgan.py:346–351  ·  view source on GitHub ↗
(self, hidden_states)

Source from the content-addressed store, hash-verified

344
345 @nn.compact
346 def __call__(self, hidden_states):
347 hidden_states = ResnetBlock(dropout_prob=self.dropout)(hidden_states)
348 if not self.no_attn:
349 hidden_states = AttnBlock()(hidden_states)
350 hidden_states = ResnetBlock(dropout_prob=self.dropout)(hidden_states)
351 return hidden_states

Callers

nothing calls this directly

Calls 2

ResnetBlockClass · 0.85
AttnBlockClass · 0.85

Tested by

no test coverage detected