바뀜
→에러
session = tf.compat.v1.Session(config=config)
session = tf.compat.v1.Session(config=config)
|}
=== 자원 문제 ===
{| class="wikitable"
!에러
!원인
!해결방법
|-
|Error occurred when finalizing GeneratorDataset iterator: FAILED_PRECONDITION: Python interpreter state is not initialized.
|GPU가 여러개인 경우 메모리를 나누어 할당하는데, 이 탓에 연산에서 메모리가 모자라 에러가 발생하곤 한다.
[해결 안됨....... 정보를 모으는 중...]
|<code>import os</code>
<code>os.environ["CUDA_DEVICE_ORDER"]="PCI_BUS_ID"</code>
<code>os.environ["CUDA_VISIBLE_DEVICES"]="0"</code>
|}
|}