문맥
레이어와 같은 딥 러닝 API에서 사용하는 스레드 로컬 컨텍스트 정보를 저장하는 컨텍스트입니다.
사용 Context.local
현재 스레드 로컬 컨텍스트를 검색 할 수 있습니다.
예:
- 같은 층 있도록 훈련에 현재의 학습 단계를 설정
BatchNorm
입력에 적용 할 때 평균과 분산 계산됩니다.
Context.local.learningPhase = .training
- 같은 층 그렇게 추론 할 수있는 현재의 학습 단계 설정
Dropout
입력에 적용 할 때 단위를 떨어 뜨리지됩니다.
Context.local.learningPhase = .inference
무작위 씨앗입니다.
메모
획득할 때마다 랜덤 시드도 업데이트되어 향후 무상태 임의 TensorFlow 작업 실행으로 인해 비결정적 결과가 발생합니다.
현재 스레드 로컬 컨텍스트입니다.
메모
이 속성에 액세스하는 것은 스레드로부터 안전합니다.
선언
public static var local: Context { get set }
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 2021-09-28 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":"기타"
}]