MCPcopy Create free account
hub / github.com/pytorch/tutorials / send_single_request

Function send_single_request

beginner_source/serving_tutorial.py:252–254  ·  view source on GitHub ↗
(session, url, data)

Source from the content-addressed store, hash-verified

250# requests to the app:
251
252async def send_single_request(session, url, data):
253 async with session.post(url, json=data) as response:
254 return await response.json()
255
256async def send_concurrent_requests(num_requests):
257 image = np.random.rand(28, 28).tolist()

Callers 1

send_concurrent_requestsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected