MCPcopy Index your code
hub / github.com/apache/tvm / request

Method request

python/tvm/rpc/tracker.py:101–116  ·  view source on GitHub ↗

Request a resource. Parameters ---------- user : str The user who is requesting the resource. priority : int The job priority callback : function: value->bool Callback function to receive an resource when ready

(self, user, priority, callback)

Source from the content-addressed store, hash-verified

99 raise NotImplementedError()
100
101 def request(self, user, priority, callback):
102 """Request a resource.
103
104 Parameters
105 ----------
106 user : str
107 The user who is requesting the resource.
108
109 priority : int
110 The job priority
111
112 callback : function: value->bool
113 Callback function to receive an resource when ready
114 returns True if the resource is consumed.
115 """
116 raise NotImplementedError()
117
118 def remove(self, value):
119 """Remove a resource in the scheduler

Callers 13

connect_serverMethod · 0.45
call_handlerMethod · 0.45
requestMethod · 0.45
test_rpc_moduleFunction · 0.45
test_rpc_moduleFunction · 0.45
check_timeoutFunction · 0.45
__enter__Method · 0.45
get_rpcFunction · 0.45
remoteFunction · 0.45
_targetFunction · 0.45

Calls

no outgoing calls

Tested by 9

test_rpc_moduleFunction · 0.36
test_rpc_moduleFunction · 0.36
check_timeoutFunction · 0.36
get_rpcFunction · 0.36
remoteFunction · 0.36
_targetFunction · 0.36