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)”
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)”