MCPcopy Create free account
hub / github.com/Oneflow-Inc/oneflow / call

Function call

python/oneflow/framework/unittest.py:174–182  ·  view source on GitHub ↗
(conn=None, cmd=None, msg=None)

Source from the content-addressed store, hash-verified

172
173
174def call(conn=None, cmd=None, msg=None):
175 cmd = "call/" + cmd
176 print("[unittest]", f"[{cmd}]", msg)
177 conn.send(cmd.encode())
178 msg_ = ""
179 if msg is not None:
180 msg_ = msg
181 conn.send(msg_.encode())
182 return conn.recv().decode()
183
184
185TestCase = unittest.TestCase

Callers 13

BarrierMethod · 0.85
TryLockMethod · 0.85
NotifyDoneMethod · 0.85
WaitUntilDoneMethod · 0.85
PushKVMethod · 0.85
PushMasterKVMethod · 0.85
ClearKVMethod · 0.85
ClearMasterKVMethod · 0.85
PullKVMethod · 0.85
PullMasterKVMethod · 0.85
ClearMethod · 0.85
IncreaseCountMethod · 0.85

Calls 3

sendMethod · 0.80
decodeMethod · 0.80
recvMethod · 0.80

Tested by

no test coverage detected