‫Now this video is if this doesn't return TensorFlow two point something.
‫So this project is based off TensorFlow 2.0 and above.
‫So we need to import that.
‫If you run this cell and your TensorFlow version is over two point something, you can skip this video
‫and continue on to the next one.
‫This is if your TensorFlow version is like mine and under 2.0, let's see how we'll do it.
‫So we want to go import this a little trick and collab to get it without running through these upgrade
‫steps.
‫Don't worry about this upgrade steps.
‫This is.
‫I'll just show you the code to do it to try.
‫Now we want to run a TensorFlow magic.
‫Now, the important thing to note is that this magic function, remember a magic function in Jupyter
‫is one that begins with a percentage sign.
‫This will only work running this in CoLab.
‫It won't work if you run this magic function in Jupyter.
‫That's something to note.
‫You'll have to install TensorFlow to manually if you're using Jupyter.
‫So that's probably where you'd go to this upgrade link.
‫But if you're using CoLab, just run this cell.
‫So that's just a comment telling you that this magic function only exists in CoLab.
‫So TensorFlow we want version two point X.
‫So this is just saying hey, load tensorflow two point x except exception pass.
‫Now let's see what happens when we run this.
‫TensorFlow is already loaded.
‫Please restart runtime to change versions.
‫Hmm.
‫Okay.
‫So this is where we'll have to go up into runtime and restart our runtime.
‫Remember, this is just like in a Jupyter Notebook.
‫If you are restarting the kernel or something like that, it just means that it's just going to reset
‫all the variables stored on Google's machine and we can reload them in a fresh manner.
‫Wonderful.
‫So if we ran this, we'd re-import the old version of TensorFlow.
‫But if we run this, we should get TensorFlow two point x.
‫Home, TensorFlow two point X selected and now let's check it out just to make sure print TF version.
‫ETF dot underscore, underscore, version, underscore, underscore.
‫Oh, I think I've got three there.
‫TTF is not defined.
‫Hmm.
‫What are we doing here?
‫We need to re import TensorFlow.
‫Of course.
‫Silly sausage, Daniel.
‫So if we go import tensorflow as TF Autocomplete.
‫Thank you google.
‫And is it going to be two point x?
‫Please let it be two point x.
‫Wonderful.
‫2.1.0.
‫We already had version 2.1.
‫Things move fast.
‫Okay, so we're going to wrap up this video nice and short.
‫That's just how to load in TensorFlow 2.1.0, which is what we use in this project.
‫If you get this message by running this cell, if you ran this cell previously and you get TensorFlow
‫version two point something, ignore this code here.
‫So I'm just going to comment this out for me for now so I don't accidentally run it.
‫Beautiful.
‫I'll see you in the next video.