https-deeplearning-ai / https-deeplearning-ai/tensorflow-3-public

try catch block to check tensorflow version is obsolete

Open
#2 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Jupyter Notebook
Stars
96
Forks
89
PR merge metrics
No merged PRs in 30d

Description

I believe the following block of code could be removed wherever they appear. It acually flows into the exception.

try:

%tensorflow_version only exists in Colab.

%tensorflow_version 2.x
except Exception:
print('This does not pass')

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Search the repository's notebooks for the shown %tensorflow_version 2.x try/except block and inspect each occurrence in context. Remove the obsolete blocks wherever they appear, then run the affected notebooks to confirm they execute without the exception-handling code.

Written by the indexing model from the issue text.

Assessment

Tech stack
tensorflow
Domain
machine-learning
Issue type
Refactor
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.