(self, z: torch.Tensor, return_dict: bool = True)
| 689 | |
| 690 | @apply_forward_hook |
| 691 | def decode(self, z: torch.Tensor, return_dict: bool = True) -> Union[DecoderOutput, torch.Tensor]: |
| 692 | decoded = self._decode(z).sample |
| 693 | |
| 694 | if not return_dict: |
| 695 | return (decoded,) |
| 696 | return DecoderOutput(sample=decoded) |
| 697 | |
| 698 | @classmethod |
| 699 | def from_pretrained(cls, pretrained_model_path, additional_kwargs={}): |
no test coverage detected