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

Function GetEnvProto

oneflow/core/control/ctrl_test.cpp:38–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36namespace {
37
38EnvProto GetEnvProto(int port) {
39 EnvProto ret;
40 auto* machine0 = ret.add_machine();
41 machine0->set_id(0);
42 machine0->set_addr("127.0.0.1");
43 ret.set_ctrl_port(port);
44 return ret;
45}
46
47Resource GetResource() {
48 Resource ret;

Callers 1

TESTFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected