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

Function InferOpConf

python/oneflow/framework/c_api_util.py:63–69  ·  view source on GitHub ↗
(op_conf_proto, upstream_signature)

Source from the content-addressed store, hash-verified

61
62
63def InferOpConf(op_conf_proto, upstream_signature):
64 serialized_op_conf = str(text_format.MessageToString(op_conf_proto))
65 serialized_upstream_sig = str(text_format.MessageToString(upstream_signature))
66 op_attribute_str = oneflow._oneflow_internal.InferOpConf(
67 serialized_op_conf, serialized_upstream_sig
68 )
69 return text_format.Parse(op_attribute_str, op_attribute_pb.OpAttribute())
70
71
72def IsInterfaceOpConf(op_conf):

Callers

nothing calls this directly

Calls 1

ParseMethod · 0.45

Tested by

no test coverage detected