MCPcopy Create free account
hub / github.com/Lightning-AI/LitServe / decode_request

Method decode_request

tests/unit/test_lit_server.py:152–154  ·  view source on GitHub ↗
(self, request: Request)

Source from the content-addressed store, hash-verified

150 self.device = device
151
152 def decode_request(self, request: Request):
153 content = request["input"]
154 return torch.tensor([content], device=self.device)
155
156 def predict(self, x):
157 return self.model(x[None, :])

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected