EagerSession.DevicePlacementPolicy
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
특정 장치에서 작업을 실행하려고 하지만 일부 입력 텐서가 해당 장치에 없을 때 어떻게 작동할지 제어합니다.
상속된 메서드
클래스 java.lang.Enum에서 최종 정수 | |
정수 | CompareTo (객체 arg0) |
최종 부울 | 같음 (개체 arg0) |
최종 클래스<E> | getDeclaringClass () |
최종 정수 | 해시 코드 () |
최종 문자열 | 이름 () |
최종 정수 | 서수 () |
끈 | toString () |
static <T는 Enum<T>> T를 확장합니다. | valueOf (클래스<T> arg0, 문자열 arg1) |
java.lang.Object 클래스에서 부울 | 같음 (개체 arg0) |
마지막 수업<?> | getClass () |
정수 | 해시 코드 () |
최종 무효 | 알림 () |
최종 무효 | 통지모두 () |
끈 | toString () |
최종 무효 | 대기 (long arg0, int arg1) |
최종 무효 | 기다리세요 (긴 arg0) |
최종 무효 | 기다리다 () |
인터페이스 java.lang.Comparable에서 추상 정수 | CompareTo (E는 Enum<E> arg0을 확장함) |
열거형 값
공개 정적 최종 EagerSession.DevicePlacementPolicy EXPLICIT
잘못된 장치에서 입력 텐서를 사용하여 작업을 실행하면 실패합니다.
공개 정적 최종 EagerSession.DevicePlacementPolicy SILENT
복사가 완료될 때까지 작업이 차단되므로 성능 비용이 발생하는 텐서를 자동으로 복사합니다. 이것이 기본 배치 정책입니다.
공개 정적 최종 EagerSession.DevicePlacementPolicy SILENT_FOR_INT32
int32 텐서를 자동으로 복사하지만 다른 dtype은 복사하지 않는 배치 정책입니다.
공개 정적 최종 EagerSession.DevicePlacementPolicy 경고
텐서를 올바른 장치에 복사하되 경고를 기록하십시오.
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 크리에이티브 커먼즈 저작자 표시 라이선스 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다. 일부 콘텐츠에는 Numpy 라이선스가 부여됩니다.
최종 업데이트: 2025-07-28(UTC)
[null,null,["최종 업데이트: 2025-07-28(UTC)"],[],[],null,["# EagerSession.DevicePlacementPolicy\n\npublic static final enum **EagerSession.DevicePlacementPolicy** \nControls how to act when we try to run an operation on a given device but some input tensors\nare not on that device. \n\n### Inherited Methods\n\nFrom class java.lang.Enum \n\n|----------------------------------|--------------------------------------------------------------------------------------------------------------------------------------|\n| final int | compareTo([EagerSession.DevicePlacementPolicy](/versions/r2.8/api_docs/java/org/tensorflow/EagerSession.DevicePlacementPolicy) arg0) |\n| int | compareTo(Object arg0) |\n| final boolean | equals(Object arg0) |\n| final Class\\\u003cE\\\u003e | getDeclaringClass() |\n| final int | hashCode() |\n| final String | name() |\n| final int | ordinal() |\n| String | toString() |\n| static \\\u003cT extends Enum\\\u003cT\\\u003e\\\u003e T | valueOf(Class\\\u003cT\\\u003e arg0, String arg1) |\n\nFrom class java.lang.Object \n\n|------------------|---------------------------|\n| boolean | equals(Object arg0) |\n| final Class\\\u003c?\\\u003e | getClass() |\n| int | hashCode() |\n| final void | notify() |\n| final void | notifyAll() |\n| String | toString() |\n| final void | wait(long arg0, int arg1) |\n| final void | wait(long arg0) |\n| final void | wait() |\n\nFrom interface java.lang.Comparable \n\n|--------------|-------------------------------------|\n| abstract int | compareTo(E extends Enum\\\u003cE\\\u003e arg0) |\n\nEnum Values\n-----------\n\n#### public static final EagerSession.DevicePlacementPolicy\n**EXPLICIT**\n\nRunning operations with input tensors on the wrong device will fail. \n\n#### public static final EagerSession.DevicePlacementPolicy\n**SILENT**\n\nSilently copy the tensor, which has a performance cost since the operation will be blocked\ntill the copy completes. This is the default placement policy. \n\n#### public static final EagerSession.DevicePlacementPolicy\n**SILENT_FOR_INT32**\n\nPlacement policy which silently copies int32 tensors but not other dtypes. \n\n#### public static final EagerSession.DevicePlacementPolicy\n**WARN**\n\nCopy the tensor to the right device but log a warning."]]