0
내가 tensorflow 타임 라인 모듈을 사용하여 GPU/CPU 시간 통계를 얻기 위해 노력하고
하지만Tensorflow : '모듈'개체가 어떤 속성 'RunMetaData'
run_metadata = tf.RunMetaData()
에 그것은 다음 부여합니다 오류가 없습니다.
AttributeError: 'module' object has no attribute 'RunMetaData'
나는 0.10.0rc0
버전을 사용 중입니다. 실제로 함수 정의를 보려면 tensorflow/python/client/timeline.py
으로 이동하지만 거기에는 존재하지 않았습니다. P.S는 : 나는 from tensorflow.python.client import timeline
는 [코드]
cross_entropy = tf.reduce_mean(tf.nn.softmax_cross_entropy_with_logits(y_conv, y_))
train_step = tf.train.AdamOptimizer(1e-4).minimize(cross_entropy)
correct_prediction = tf.equal(tf.argmax(y_conv,1), tf.argmax(y_,1))
accuracy = tf.reduce_mean(tf.cast(correct_prediction, tf.float32))
run_options = tf.RunOptions(trace_level=tf.RunOptions.FULL_TRACE)
run_metadata = tf.RunOutputs()
sess.run(tf.initialize_all_variables())
[ERROR SNIPPET]
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-1-0dd6887f3319> in <module>()
90
91 run_options = tf.RunOptions(trace_level=tf.RunOptions.FULL_TRACE)
---> 92 run_metadata = tf.RunMetaData()
93 sess.run(tf.initialize_all_variables())
94
AttributeError: 'module' object has no attribute 'RunMetaData'
나는 어떤 경우에 시도해도 즉각적인 것은 최근 버전 (0.12.1) 일 것이라고 추측합니다. 도움이되지 않거나 실행할 수없는 경우이 오류의 원인이되는 코드 스 니펫을 게시 할 수 있습니까? –
스 니펫으로 질문을 업데이트했습니다. 지금 버전을 업데이트 할 수 없습니다. 그것의 좀 문제. –
아, 존재하지 않는 함수를 호출하는 TensorFlow 구성 요소라고 생각했습니다. 'RunMetadata' (소문자 "d")를 의미합니까? –