MCPcopy Create free account
hub / github.com/Physical-Intelligence/openpi / setup

Method setup

src/openpi/models/utils/fsq_tokenizer.py:84–86  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

82 return (2,) * int(math.log2(target_codebook_size))
83
84 def setup(self):
85 self.proj_down = nn.Dense(len(self.bins_per_dim))
86 self.proj_up = nn.Dense(self.input_dim)
87
88 def __call__(self, inputs: jnp.ndarray) -> tuple[jnp.ndarray, jnp.ndarray]:
89 tokens, z = self.encode(inputs)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected