I am able to run the complete notebook including the optional evaluation step.
However, my grader is failing with this-
Cell #3. Can’t compile the student’s code. Error: TypeError(“init() missing 2 required positional arguments: ‘op’ and ‘message’”,)
I tried to use the force_refresh=True method to update (and then delete) the notebook hoping that it will get refreshed in the next iteration but it is gone and I am getting a 404 now.
I was able to recover the file by uploading it again. Thanks for your patience with that.
I am still seeing the original problem and I am able to identify that it happening here-
train_data = tfds.load(…)
val_data = tfds.load(…)
After some google search, this seems to be a problem with TFDS version 3.2.0 as outlined here-
The code is running fine in the jupyter notebook but it is the grader that throws the error.
I was able to confirm that the notebook runtime is using TFDS version 3.2.1 (which doesn’t have the problem).
How can I check which version of TFDS is used by the grader?
or, can you check that for me? if it is using 3.2.0, that would explain the problem and we need to either upgrade or downgrade that.
@gent.spah - thanks for the suggestion.
I was able to test that the live notebook is running with version 3.2.1 of TFDS by dumping the version. My notebook is working fine on the live system (jupyter).
I am not sure how to find the TFDS version number for the offline grading system as I don’t have any access to that except for the “submit” button. Also, it is the grader that is throwing the init() error which makes me suspicious that it has the wrong TDFS version.
Given that nobody else has complained about this, I also feel that it must be me who is doing something wrong here. Can you confirm if others were able to complete this lab without any errors?
I was finally able to get this to work by specifying the data_dir parameter while using tfds.load()
It shouldn’t be this hard though to get through this lab.
I still believe that the grader is running a different version of TDFS compared to the online version and that made it so much harder to debug stuff. It would be nice if someone can look into this and fix the version mismatch so others wouldn’t have to face the same issue.