(op_conf_proto, upstream_signature)
| 61 | |
| 62 | |
| 63 | def 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 | |
| 72 | def IsInterfaceOpConf(op_conf): |