tf.sparse_to_dense()方法有时会出现indices out of bounds的情况,比如:
import tensorflow as tf
# 假设数据标签有3类
label = tf.expand_dims(tf.constant([1, 2, 2, 3, 3]),
tf.sparse_to_dense()方法有时会出现indices out of bounds的情况,比如:
import tensorflow as tf
# 假设数据标签有3类
label = tf.expand_dims(tf.constant([1, 2, 2, 3, 3]),