AttributeError: module ‘tensorflow‘ has no attribute ‘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)”

你可能感兴趣的:(tensorflow,tensorflow)