Tensorflow assignment 80/100 why?

I competed the tensorflow assignment, all of the tests passed in the notebook and all of my outputs matched the expected outputs, but the grader only gave me 80/100 points. Wondering why…

I’d like to know and understand what I missed

Here is the grader output if that helps

[ValidateApp | INFO] Validating ‘/home/jovyan/work/submitted/courseraLearner/W3A1/Tensorflow_introduction.ipynb’
[ValidateApp | INFO] Executing notebook with kernel: python3
2023-05-29 19:36:40.892569: W tensorflow/stream_executor/platform/default/dso_loader.cc:59] Could not load dynamic library ‘libcudart.so.10.1’; dlerror: libcudart.so.10.1: cannot open shared object file: No such file or directory
2023-05-29 19:36:40.892606: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.
2023-05-29 19:36:42.353306: W tensorflow/stream_executor/platform/default/dso_loader.cc:59] Could not load dynamic library ‘libcuda.so.1’; dlerror: libcuda.so.1: cannot open shared object file: No such file or directory
2023-05-29 19:36:42.353342: W tensorflow/stream_executor/cuda/cuda_driver.cc:312] failed call to cuInit: UNKNOWN ERROR (303)
2023-05-29 19:36:42.353368: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:156] kernel driver does not appear to be running on this host (ip-10-2-22-55.ec2.internal): /proc/driver/nvidia/version does not exist
2023-05-29 19:36:42.353600: I tensorflow/core/platform/cpu_feature_guard.cc:142] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN)to use the following CPU instructions in performance-critical operations: AVX2 AVX512F FMA
To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.
2023-05-29 19:36:42.361593: I tensorflow/core/platform/profile_utils/cpu_utils.cc:104] CPU Frequency: 2999990000 Hz
2023-05-29 19:36:42.363230: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x56426acdea90 initialized for platform Host (this does not guarantee that XLA will be used). Devices:
2023-05-29 19:36:42.363263: I tensorflow/compiler/xla/service/service.cc:176] StreamExecutor device (0): Host, Default Version
[ValidateApp | ERROR] Timeout waiting for execute reply (30s).
[ValidateApp | ERROR] Interrupting kernel
Tests failed on 1 cell(s)! These tests could be hidden. Please check your submission.

That most likely means that your code is not general in some way. Meaning that it works for the test cases in the notebook, but not with the test cases from the grader. It’s unfortunate that the grader can’t tell you which function is at fault here. All that spew of output that looks like errors is actually normal, believe it or not, other than the last line.

Probably need to look at your code to diagnose this. Please check your DMs for a message from me about how to proceed with that.

1 Like

Just to close the loop on the public thread here: Mike and I talked about this by DM and it turns out the problem was hard-coding some of the dimensions in the compute_total_cost function, which is why it worked in the notebook, but failed the grader. All resolved now :nerd_face: