Posted on:

10 Nov 2023

0

Incompatible constructor arguments

Hi all,


I have the following error when running the mnist_dataset, mnist_info = tfds.load(name='mnist', with_info=True, as_supervised=True) line:


TypeError: __init__(): incompatible constructor arguments. The following argument types are supported:
    1. tensorflow.python._pywrap_file_io.BufferedInputStream(arg0: str, arg1: int)

Invoked with: WindowsGPath('C:\\Users\\maver\\tensorflow_datasets\\downloads\\extracted\\GZIP.cvdf-datasets_mnist_train-images-idx3-ubyteRA_Kv3PMVG-iFHXoHqNwJlYF9WviEKQCTSyo8gNSNgk.gz'), 524288


Does anyone else have this error? If so, can you please help resolve this?


Thanks!

0 answers ( 0 marked as helpful)

Submit an answer