Kimtaehyung123
Kimtaehyung123

Reputation: 11

AttributeError: type object 'DatasetV2' has no attribute 'save'

test_ds.save(path)

I want to save the tf.data.Dataset,but get the message "AttributeError: type object 'DatasetV2' has no attribute 'save'"

Upvotes: 0

Views: 616

Answers (2)

Kimtaehyung123
Kimtaehyung123

Reputation: 11

refer to this answer: How to Save a Tensorflow Dataset

found out tf version is 2.8.0 in the runtime environment,using tf.data.experimental.save works.

Upvotes: 0

Kimtaehyung123
Kimtaehyung123

Reputation: 11

using test_ds.save(path) I got new problem,"AttributeError: 'TensorSliceDataset' object has no attribute 'save'"

Upvotes: -1

Related Questions