(self, vae, enable_cuda_graph=True)
| 10 | class DSVAE(CUDAGraph, torch.nn.Module): |
| 11 | |
| 12 | def __init__(self, vae, enable_cuda_graph=True): |
| 13 | super().__init__(enable_cuda_graph=enable_cuda_graph) |
| 14 | self.vae = vae |
| 15 | self.config = vae.config |
| 16 | self.device = self.vae.device |
| 17 | self.dtype = self.vae.dtype |
| 18 | self.vae.requires_grad_(requires_grad=False) |
| 19 | self.decoder_cuda_graph_created = False |
| 20 | self.encoder_cuda_graph_created = False |
| 21 | self.all_cuda_graph_created = False |
| 22 | |
| 23 | def _graph_replay_decoder(self, *inputs, **kwargs): |
| 24 | for i in range(len(inputs)): |
nothing calls this directly
no outgoing calls
no test coverage detected