MCPcopy Create free account
hub / github.com/ByteDance-Seed/Bagel / decode

Method decode

modeling/autoencoder.py:320–322  ·  view source on GitHub ↗
(self, z: Tensor)

Source from the content-addressed store, hash-verified

318 return z
319
320 def decode(self, z: Tensor) -> Tensor:
321 z = z / self.scale_factor + self.shift_factor
322 return self.decoder(z)
323
324 def forward(self, x: Tensor) -> Tensor:
325 return self.decode(self.encode(x))

Callers 15

forwardMethod · 0.95
decode_imageMethod · 0.45
gen_textMethod · 0.45
editing_image_with_thinkFunction · 0.45
editing_imageFunction · 0.45
editing_image_with_thinkFunction · 0.45
editing_imageFunction · 0.45
generate_imageFunction · 0.45
editing_image_with_thinkFunction · 0.45
editing_imageFunction · 0.45
generate_imageFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected