Beispiel #1
0
def GetInterUserJobInfo():
    inter_user_job_info, error_str = oneflow_internal.GetSerializedInterUserJobInfo(
    )
    error = text_format.Parse(error_str, error_util.ErrorProto())
    if error.HasField("error_type"):
        raise JobBuildAndInferError(error)
    return text_format.Parse(inter_user_job_info, InterUserJobInfo())
Beispiel #2
0
def GetInterUserJobInfo():
    inter_user_job_info = oneflow._oneflow_internal.GetSerializedInterUserJobInfo(
    )
    return text_format.Parse(inter_user_job_info, InterUserJobInfo())
Beispiel #3
0
def GetInterUserJobInfo():
    inter_user_job_info = oneflow._oneflow_internal.GetSerializedInterUserJobInfo(
    )
    ret = InterUserJobInfo()
    ret.ParseFromString(inter_user_job_info)
    return ret
Beispiel #4
0
def GetInterUserJobInfo():
    inter_user_job_info, error = oneflow_api.GetSerializedInterUserJobInfo()
    if error.has_error_type():
        raise JobBuildAndInferCfgError(error)
    return text_format.Parse(inter_user_job_info, InterUserJobInfo())