Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Lightning-AI/LitServe
/ encode_response
Method
encode_response
tests/unit/test_torch.py:47–48 ·
view source on GitHub ↗
(self, output)
Source
from the content-addressed store, hash-verified
45
return
self.model(x[None, :])
46
47
def
encode_response(self, output) -> Response:
48
return
{
"output"
: float(output)}
49
50
51
def
test_torch():
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected