TensorFlow 모델을 빌드, 저장,로드 및 실행할 클래스를 정의합니다.
경고 : API는 현재 실험적이며 TensorFlow API 안정성 보장이 적용되지 않습니다. 설치 지침은 README.md 를 참조하십시오.
LabelImage 예제는이 API를 사용하여 사전 훈련 된 Inception 아키텍처 컨벌루션 신경망을 사용하여 이미지를 분류하는 방법을 보여줍니다. 다음을 보여줍니다.
- 그래프 구성 : OperationBuilder 클래스를 사용하여 JPEG 이미지를 디코딩, 크기 조정 및 정규화하는 그래프를 구성합니다.
- 모델로드 : Graph.importGraphDef ()를 사용하여 사전 훈련 된 Inception 모델을로드합니다.
- 그래프 실행 : 세션을 사용하여 그래프를 실행하고 이미지에 가장 적합한 레이블을 찾습니다.
인터페이스
ExecutionEnvironment | TensorFlow Operation 을 만들고 실행하기위한 환경을 정의합니다. |
Graph.WhileSubgraphBuilder | while 루프에 대한 조건부 또는 본문 하위 그래프를 빌드하기 위해 buildSubgraph 메서드를 재정의하는 추상 클래스를 인스턴스화하는 데 사용됩니다. |
피연산자 <T> | TensorFlow 연산의 피연산자에 의해 구현 된 인터페이스입니다. |
조작 | Tensor에서 계산을 수행합니다. |
OperationBuilder | Operation 위한 빌더. |
클래스
EagerSession | TensorFlow 작업을 열심히 실행하기위한 환경입니다. |
EagerSession.Options | |
그래프 | TensorFlow 계산을 나타내는 데이터 흐름 그래프입니다. |
GraphOperation | Graph 노드로 추가 된 Operation 에 대한 구현. |
GraphOperationBuilder | GraphOperation 을 Graph 에 추가하기위한 OperationBuilder 입니다. |
출력 <T> | Operation 의해 생성 된 텐서에 대한 기호 핸들입니다. |
SavedModelBundle | SavedModelBundle은 스토리지에서로드 된 모델을 나타냅니다. |
SavedModelBundle.Loader | 저장된 모델을로드하기위한 옵션입니다. |
섬기는 사람 | 분산 학습에 사용하기위한 In-process TensorFlow 서버. |
세션 | Graph 실행을위한 드라이버. |
Session.Run | 세션을 실행할 때 얻은 텐서 및 메타 데이터를 출력합니다. |
Session.Runner | Operation 실행하고 Tensors 평가 Tensors . |
모양 | 연산에 의해 생성 된 텐서의 부분적으로 알려진 형태. |
텐서 <T> | 요소가 T에서 설명하는 형식 인 정적으로 형식이 지정된 다차원 배열입니다. |
TensorFlow | TensorFlow 런타임을 설명하는 정적 유틸리티 메서드입니다. |
텐서 | Tensor 개체를 만들기위한 형식 안전 팩토리 메서드입니다. |
열거 형
데이터 형식 | Tensor 의 요소 유형을 열거 형으로 나타냅니다. |
EagerSession.DevicePlacementPolicy | 주어진 장치에서 작업을 실행하려고하지만 일부 입력 텐서가 해당 장치에 없을 때 작동하는 방법을 제어합니다. |
EagerSession.ResourceCleanupStrategy | TensorFlow 리소스가 더 이상 필요하지 않을 때 정리하는 방법을 제어합니다. |
예외
TensorFlowException | TensorFlow Graphs를 실행할 때 확인되지 않은 예외가 발생했습니다. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2020-04-21 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"필요한 정보가 없음"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"너무 복잡함/단계 수가 너무 많음"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"오래됨"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"번역 문제"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"샘플/코드 문제"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"기타"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"이해하기 쉬움"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"문제가 해결됨"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"기타"
}]