바뀜
→에러
Function call stack: train_function -> train_function
Function call stack: train_function -> train_function
|텐서플로우, CUDA, CuDNN 등에서 뭔가 안맞았을 때...? 모르겠다 젠장;
|텐서플로우, CUDA, CuDNN 등에서 뭔가 안맞았을 때...? 모르겠다 젠장;
GPU자원의 문제라는 설도 있었다.
다 맞추고 텐서플로우를 GPU버전으로 다시 설치해도 뜨네;
다 맞추고 텐서플로우를 GPU버전으로 다시 설치해도 뜨네;
|
|GPU자원의 문제라면 탄력적으로 GPU를 사용하게 하는 방식으로 해결이 가능하리라...?
Tensorflow2.X의 경우.
import tensorflow as tf
config = tf.compat.v1.ConfigProto()
config.gpu_options.allow_growth = True
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>
|}
|}