C1W1_Assignment error

I WROTE THE CODES ALL CORRECTLY
the test passed all but in the grade output its saying

ValidateApp | INFO] Validating '/home/jovyan/work/submitted/courseraLearner/W1_Assignment/C1W1_Assignment.ipynb'
[ValidateApp | INFO] Executing notebook with kernel: python3
2024-11-27 12:40:40.227164: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'libnvinfer.so.6'; dlerror: libnvinfer.so.6: cannot open shared object file: No such file or directory
2024-11-27 12:40:40.227300: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'libnvinfer_plugin.so.6'; dlerror: libnvinfer_plugin.so.6: cannot open shared object file: No such file or directory
2024-11-27 12:40:40.227335: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:30] Cannot dlopen some TensorRT libraries. If you would like to use Nvidia GPU with TensorRT, please make sure the missing libraries mentioned above are installed properly.
2024-11-27 12:40:42.566987: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'libcuda.so.1'; dlerror: libcuda.so.1: cannot open shared object file: No such file or directory
2024-11-27 12:40:42.567021: E tensorflow/stream_executor/cuda/cuda_driver.cc:351] failed call to cuInit: UNKNOWN ERROR (303)
2024-11-27 12:40:42.567051: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:156] kernel driver does not appear to be running on this host (ip-10-2-16-149.ec2.internal): /proc/driver/nvidia/version does not exist
2024-11-27 12:40:42.567215: I tensorflow/core/platform/cpu_feature_guard.cc:142] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 AVX512F FMA
2024-11-27 12:40:42.594926: I tensorflow/core/platform/profile_utils/cpu_utils.cc:94] CPU Frequency: 2999995000 Hz
2024-11-27 12:40:42.597046: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x5617ccc51a40 initialized for platform Host (this does not guarantee that XLA will be used). Devices:
2024-11-27 12:40:42.597076: 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 2 cell(s)! These tests could be hidden. Please check your submission.
==========================================================================================
The following cell failed:

    utils.test_df_drop(df)

The error was:

    ---------------------------------------------------------------------------
    Exception                                 Traceback (most recent call last)
    <ipython-input-13-02ac41180da9> in <module>
    ----> 1 utils.test_df_drop(df)
          2 
    
    ~/work/submitted/courseraLearner/W1_Assignment/utils.py in test_df_drop(df)
         94     ]
         95 
    ---> 96     test_loop(test_cases)
         97 
         98 def test_data_sizes(train_size, test_size, val_size):
    
    ~/work/submitted/courseraLearner/W1_Assignment/utils.py in test_loop(test_cases)
         25         print('\033[92m', success," Tests passed")
         26         print('\033[91m', fails, " Tests failed")
    ---> 27         raise Exception("Please check the error messages above.")
         28 
         29 def test_white_df(white_df):
    
    Exception: Please check the error messages above.


==========================================================================================
The following cell failed:

    utils.test_history(history)

The error was:

    ---------------------------------------------------------------------------
    NameError                                 Traceback (most recent call last)
    <ipython-input-34-bb2fa200c0ad> in <module>
    ----> 1 utils.test_history(history)
    
    NameError: name 'history' is not defined 

@Deepti_Prasad

Thank you @sabrin-ibrahim for creating the topic, but can you be specific about which specialisation, course, week and assignment you are working as you haven’t selected the categories correctly

Custom Models, Layers, and Loss Functions with TensorFlow
week 1
C1W1_Assignment
first weeks assignment

1 Like

based on your grader error and failed test output, it is pointing in the cell where you are suppose to write codes so that codes direct you to the file or directory needs to mentioned is incorrect written.

Also make sure you working on the latest version of the assignment.

The grader output error which mentions points to that there was probably some editing done beyond where you weren’t suppose to do. So to resolve this issue, you need to get fresh copy of assignment and re-do your assignment.

Not defined error of test cell points you probably didn’t run all the cells or any of the cells didn’t run all the codes successful before it timed out as each cell is assigned with a given time for the codes to run successfully and when a coder hard-coded the path to the recalled function, it throws error of runtime error. To assist you with this, please refer the pinned link comment, c1w2

If you want to know how to get a fresh copy of the assignment, then refer this link Get fresh copy

Let me know if your issue still persist.

Regards
DP

Thank you it worked

1 Like