AttributeError: module ‘tensorflow’ has no attribute 'decode_csv’
tf2.0
将“tf.decode_csv(line, record_defaults=_CSV_COLUMN_DEFAULTS)”
改为:
“tf.io.decode_csv(line, record_defaults=_CSV_COLUMN_DEFAULTS)”
本文解决在TensorFlow 2.0中使用decode_csv函数遇到的AttributeError问题。需将tf.decode_csv替换为tf.io.decode_csv,并提供正确的参数设置。
AttributeError: module ‘tensorflow’ has no attribute 'decode_csv’
tf2.0
将“tf.decode_csv(line, record_defaults=_CSV_COLUMN_DEFAULTS)”
改为:
“tf.io.decode_csv(line, record_defaults=_CSV_COLUMN_DEFAULTS)”
3万+
3万+

被折叠的 条评论
为什么被折叠?