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

Method __init__

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

Source from the content-addressed store, hash-verified

193
194class CLIP(BaseModel):
195 def __init__(self,
196 hf_token,
197 device,
198 verbose,
199 path,
200 max_batch_size,
201 embedding_dim
202 ):
203 super(CLIP, self).__init__(hf_token, device=device, verbose=verbose, path=path, max_batch_size=max_batch_size, embedding_dim=embedding_dim)
204 self.name = "CLIP"
205
206 def get_model(self):
207 return CLIPTextModel.from_pretrained(self.path,

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected