Keyboard shortcuts

Press ← or → to navigate between chapters

Press ? to show this help

Press Esc to hide this help

FoundryOutputParam: Foundry 출력 매개변수 계약

transforms.api.FoundryOutputParam은 변환 출력 매개변수의 기본 클래스이며 직접 사용하기 위한 클래스가 아닙니다. 실제 출력 명세에는 Output을 사용합니다.

transforms.api.FoundryOutputParam(
    aliases, type="foundry", description=None, properties=None,
)
인자형식조건
aliaseslist[str]필수. Compass 절대 경로 또는 데이터셋 RID 목록
typestr출력 데이터셋 유형. 기본값 foundry
descriptionstr매개변수 설명. 기본값 None
propertiesdict빌드 그래프의 출력 참조에 기록할 속성. 기본값 None

모든 alias를 해석하여 JobSpec의 output specs에 추가합니다. alias가 유효한 RID이면 그래프 의존 관계에 defaultPath를 전달하지 않습니다.

실행 인터페이스

메서드 또는 속성계약
instance(context, json_value)정적 메서드. ParamContext와 JobSpec의 원시 JSON 값에서 compute에 주입할 인스턴스 생성
output_results(_instance, **_kwargs)instance에서 생성한 객체를 받아 출력 RID별 TransformsOutputResult 맵 생성. TransformJobResult에 병합
json_valueJobSpec용 JSON 값. None이면 바인딩되지 않은 상태
schema유효한 JSON 스키마 반환

instance는 1.53.0에 추가되었습니다. 매개변수 중 하나라도 바인딩되지 않은 변환은 JobSpec을 게시하지 않습니다. 경량 출력 구현의 계약은 LightweightOutputParam, 생성 맥락은 ParamContext를 따릅니다.