MCPcopy Create free account
hub / github.com/apple/ml-fastvlm / from_str

Method from_str

llava/serve/controller.py:33–39  ·  view source on GitHub ↗
(cls, name)

Source from the content-addressed store, hash-verified

31
32 @classmethod
33 def from_str(cls, name):
34 if name == "lottery":
35 return cls.LOTTERY
36 elif name == "shortest_queue":
37 return cls.SHORTEST_QUEUE
38 else:
39 raise ValueError(f"Invalid dispatch method")
40
41
42@dataclasses.dataclass

Callers 1

__init__Method · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected