import tensorflow as tf

        tf.reduce_mean(tf.to_float(tf.nn.in_top_k(
            self.end_points_D_val['logits'], targets, 1)))
    self.error_rate = 1. - \
        tf.reduce_mean(tf.to_float(tf.nn.in_top_k(
            self.end_points_D['class_logits'], targets, 1)))
    if gpu_idx == 0:
