Kaynağa Gözat

Fix deprecated call to tf.image_summary to tf.summary.image

David E. Weekly 9 yıl önce
ebeveyn
işleme
d50d211770
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      im2txt/im2txt/ops/image_processing.py

+ 1 - 1
im2txt/im2txt/ops/image_processing.py

@@ -92,7 +92,7 @@ def process_image(encoded_image,
   # only logged in thread 0.
   def image_summary(name, image):
     if not thread_id:
-      tf.image_summary(name, tf.expand_dims(image, 0))
+      tf.summary.image(name, tf.expand_dims(image, 0))
 
   # Decode image into a float32 Tensor of shape [?, ?, 3] with values in [0, 1).
   with tf.name_scope("decode", values=[encoded_image]):