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

Function get_embedding_dim

demo/Diffusion/models.py:99–105  ·  view source on GitHub ↗
(version)

Source from the content-addressed store, hash-verified

97 raise ValueError(f"Incorrect version {version}")
98
99def get_embedding_dim(version):
100 if version in ("1.4", "1.5"):
101 return 768
102 elif version in ("2.0", "2.0-base", "2.1", "2.1-base"):
103 return 1024
104 else:
105 raise ValueError(f"Incorrect version {version}")
106
107class BaseModel():
108 def __init__(

Callers 4

make_CLIPFunction · 0.85
make_UNetFunction · 0.85
make_VAEFunction · 0.85
make_VAEEncoderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected