Welcome back.
So the last video we made sure that our CO lab notebook runtime or the machine that lives on Google's
cloud server that our notebook has been run on is using a GP you to power its computing.
Now I just want to show you something pretty cool about Ecolab as well because these notebooks are shareable.
You can run them almost instantaneously.
So this is optional video if you want to just go back into getting our data ready go skip this one and
going into the next video to show you an example of a shareable Google lab notebook as well as how much
a GP you actually speeds up compute.
So if we go to a new tab collab researched up Google dot com if we were to cancel out of this the home
page of Google collab is actually a notebook in itself.
So that's the amazing thing you can copy that to your google drive or we can connect this to a runtime.
And now a little bit of extra curriculum would be to go through this notebook here and just get familiar
with Google Ecolab like there's a lot here but you just saw that I connected that to a runtime and I
can immediately start running code in this notebook.
How beautiful is that so if we go here this is going to input number hi Matt Gottlieb input pipeline
let us take no setup I just connected this to a runtime that is amazing and now there's a little section
in here we go.
Years and years tend to flow with GP use.
So this is what we just did in the last video in our runtime we're using a GPO.
You can see that if I move the mouse is going to go away.
We're using a GP you on this dog vision notebook.
But if we click here this little guide this is gonna take us to this Web site here all the touch.
Both of these by the way to the resources section.
Again we just connect our runtime up here is gonna give us a little insight into how fast tensor flow
is with the GPO and without a GPO so if we go here run this cell it's gonna make sure we use intensive
flow to point something.
And this is just a line of code to make sure it's very similar.
Oh JP you're not found.
Why is this.
Let's make sure it is change runtime type.
It may be because I'm using a GP you in double vision you might be limited to only one but let's say
connecting how beautiful is that.
So if we run this says that we've got a GP you beautiful.
So it's found a GP you at device GP use zero.
So if we go here this is observed speed up on GP relative to CPR.
I'm gonna close this table of contents we don't need that.
So we've got a couple of functions here.
What this is basically saying is run some code on the CPA and run the same code on the GP use.
There you go with TAF device with a device GPO see you up there.
So let's say shift in a..
Run this.
Just gonna run some sort of loop a number of times.
Shouldn't take too long convulsive.
There we go.
Just gonna involve a filter over some random images such as processing images.
That's exactly what we want to do right.
Look at that time to involve 32 by 7 by 7 by three filter over.
So this is just basically processed some images of this over one hundred or so images ten times the
CPA took three point four seconds the GPO took zero point one seconds of just about zero point one seconds
so 30 times faster.
Isn't that beautiful.
First of all the fact how instantly we can connect to using such fast computing in Google collab.
And second of all if we use a GP you we get a speed up of 30 x I just think that's amazing.
And now again remember any of these tutorials in Google collab if in doubt run the code connect to a
runtime and try it out run it for yourself.
That's the motto right.
If in doubt run the code.
But again this was just an optional video just to show you the power of Google collab and the power
of a GP you.
Now we know that what a GP you can do.
Let's get back into our dog vision notebook and use one.