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

Method __init__

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

Source from the content-addressed store, hash-verified

389
390class VAEEncoder(BaseModel):
391 def __init__(self,
392 hf_token,
393 device,
394 verbose,
395 path,
396 max_batch_size,
397 embedding_dim
398 ):
399 super(VAEEncoder, self).__init__(hf_token, device=device, verbose=verbose, path=path, max_batch_size=max_batch_size, embedding_dim=embedding_dim)
400 self.name = "VAE encoder"
401
402 def get_model(self):
403 vae_encoder = TorchVAEEncoder(self.hf_token, self.device, self.path)

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected