MCPcopy Create free account
hub / github.com/NVIDIA/TensorRT / __init__

Method __init__

demo/Diffusion/models.py:328–337  ·  view source on GitHub ↗
(self,
        hf_token,
        device,
        verbose,
        path,
        max_batch_size,
        embedding_dim
    )

Source from the content-addressed store, hash-verified

326
327class VAE(BaseModel):
328 def __init__(self,
329 hf_token,
330 device,
331 verbose,
332 path,
333 max_batch_size,
334 embedding_dim
335 ):
336 super(VAE, self).__init__(hf_token, device=device, verbose=verbose, path=path, max_batch_size=max_batch_size, embedding_dim=embedding_dim)
337 self.name = "VAE decoder"
338
339 def get_model(self):
340 vae = AutoencoderKL.from_pretrained(self.path,

Callers 4

__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected