Optimize Tensorflow Pipeline Performance: prefetch & cache | Deep Learning Tutorial 45 (Tensorflow)

  Рет қаралды 34,700

codebasics

codebasics

Күн бұрын

It is important to make optimal use of your hardware resources (CPU and GPU) while training a deep learning model. You can use tf.data.Dataset.prefetch(AUTOTUNE) and tf.data.Dataset.cache() methods for this purpose. They help you optimize tensorflow input pipeline performance. In this video we will go over how these two methods work and will write some code as well.
Code: github.com/cod...
Deep learning playlist: • Deep Learning With Ten...
Machine learning playlist: www.youtube.co...
🔖Hashtags🔖
#tensorflowpipeline #tensorflowprefetchdataset #tensorflowprefetchautotune #prefetchautotune #tensorflowinputpipeline #tensorflowprefetch #tensorflowdatapipeline
Do you want to learn technology from me? Check codebasics.io/ for my affordable video courses.
🌎 Website: www.codebasics...
🎥 Codebasics Hindi channel: / @codebasicshindi
#️⃣ Social Media #️⃣
🔗 Discord: / discord
📸 Instagram: / codebasicshub
🔊 Facebook: / codebasicshub
📱 Twitter: / codebasicshub
📝 Linkedin (Personal): / dhavalsays
📝 Linkedin (Codebasics): / codebasics
❗❗ DISCLAIMER: All opinions expressed in this video are of my own and not that of my employers'.

Пікірлер: 44
@codebasics
@codebasics 2 жыл бұрын
Check out our premium machine learning course with 2 Industry projects: codebasics.io/courses/machine-learning-for-data-science-beginners-to-advanced
@NeotenicApe
@NeotenicApe 3 жыл бұрын
I have just finished the whole series. The way you teach makes everything astoundingly intuitive and simple. You and this channel are treasures. Thank you for the time and effort you've expended doing this. I know you already have a lot of requests, and I would not want to impose more upon you, but, whenever time permits, I would love for you to explain forecasting models with multiple features both theoretically and with TF/Keras. Now, on to your other playlists.
@nguyenminhluong7571
@nguyenminhluong7571 2 жыл бұрын
Thank u so much, I have been stuck on dataset. prefetch() for 2 days until I found your Video!! Many Thanks!
@codebasics
@codebasics 2 жыл бұрын
Glad it helped
@rabadaba7
@rabadaba7 Жыл бұрын
I love this man! His enthusiasm and charisma is amazing.
@i_amankitgupta
@i_amankitgupta 3 жыл бұрын
Hello Dear Sir, Please Add more videos I am only following your data Science Road Map and Your Video I have simply Understand. That time I am 3 years in 6 sem. Next year My placement will start so sir Please complete the Deep learning series. Please sir Humble requests to you hurry up to complete the Deep Learning series. You are one of the best teachers on KZbin to simply explain everything.
@codebasics
@codebasics 3 жыл бұрын
yes Ankit I am trying. The field is vast and I just dont have enough time but I am on it!
@mayurkumawatmusic
@mayurkumawatmusic 3 жыл бұрын
please add more videos sir, your way of explaining concepts is very easy. I watched this whole playlist all 83 videos ❤️
@codebasics
@codebasics 3 жыл бұрын
yes I am in the process of making more videos. there are many more exciting videos coming up.. next one is going to be on BERT :) Give me some time I am working on them.
@mayurkumawatmusic
@mayurkumawatmusic 3 жыл бұрын
@@codebasics thank you sir 😊
@coolstudios8273
@coolstudios8273 Жыл бұрын
First off, you're channel is so amazing, you're videos are excellent quality and they've helped me learn so much about deep learning, so thank you so much for your hard work and quality content. :D Now lately I've been developing a large Tensorflow model, and I'm getting out of memory errors, from what I've learned it seems the best solution to this road block is gradient checkpointing, however there is little to no resources online about it. Could you make a video covering gradient checkpointing?
@jayminadhikari9016
@jayminadhikari9016 3 жыл бұрын
Thank you so much sir for this online Course videos about AI ,, I watched every single video of this playlist !! Really appreciated !
@codebasics
@codebasics 3 жыл бұрын
This playlist is not complete. I am still actively uploading videos. Few more videos to go ☺️
@codebasics
@codebasics 3 жыл бұрын
Glad it was helpful!
@jayminadhikari9016
@jayminadhikari9016 3 жыл бұрын
@@codebasics Sir your explanation skill is really nice and easy to understand .🙏🏻🙏🏻
@_Ahmed_O
@_Ahmed_O 7 ай бұрын
I am so grateful for your help and clear explanation.
@mateusbalotin7247
@mateusbalotin7247 2 жыл бұрын
Amazing content!!! Thank you very much.
@ArpitYadav-ws5xe
@ArpitYadav-ws5xe 2 жыл бұрын
Great. Excellent video
@תומרמיכאלוביץ
@תומרמיכאלוביץ Жыл бұрын
You are amazing ! TY
@canoksuzoglu6540
@canoksuzoglu6540 2 ай бұрын
thank you for great explainatition
@mawkuri5496
@mawkuri5496 2 жыл бұрын
this is the last video. can you create a tuts on transformers and deep minds Fictitious Co-Play (FCP)
@isitabhoye4081
@isitabhoye4081 3 жыл бұрын
Please , upload video on BERT model also.
@codebasics
@codebasics 3 жыл бұрын
yes it is coming up soon
@sweetykatam3036
@sweetykatam3036 3 жыл бұрын
Please do vedios on digital image processing
@kishanikandasamy
@kishanikandasamy 3 жыл бұрын
Sir Can you please make a video on how to detect facial expressions using Deep learning
@LaurentLaborde
@LaurentLaborde 2 жыл бұрын
4:00 I'm very confused at this diagram, you're not calling "batch()" ?
@anandakhan4160
@anandakhan4160 2 жыл бұрын
helpful.
@juanete69
@juanete69 7 ай бұрын
When do we need to use .cache() and when .cache().repeat()? Some tutorials say we need the second if we have multiple epochs.
@shubhamdamkondwar6633
@shubhamdamkondwar6633 3 жыл бұрын
hi i know this is out of he topic question but i wanted to kno Google Data Analytics Professional Certificate is it worth to enroll
@shubhamtalks9718
@shubhamtalks9718 3 жыл бұрын
What if there is some randomization step in between our pipeline? Should we use prefetch and cache then? Because that randomization step should ideally generate some different result for each epoch.
@suleymanerim2119
@suleymanerim2119 Жыл бұрын
You should use randomization after you cache . If you do caching after randomization step, then you will be fixing the last output of randomization step and getting the same results for each epoch.
@nikhilbapurao1223
@nikhilbapurao1223 3 жыл бұрын
Hello sir I want to know that the Geospatial analyst role can help me to get data science field in future? Or geospatial analyse experience is beneficial for me in future if I switch into data science? Please reply
@shubhamtalks9718
@shubhamtalks9718 3 жыл бұрын
What is the difference between tf.data.Dataset.map(...) vs tf.data.Dataset.apply(...) ?
@ThePietro1234
@ThePietro1234 Жыл бұрын
Hi, thanks for the video, it is very clear! Only one thing I didn't understand: with .cache optimization the data remains in the CPU RAM right? Or the data remains in GPU DRAM? Because even though we talk about caching I doubt that the data remains in cache memory (trivially because cache memory is too small to fit a medium size dataset). Thanks!
@himanshuG45
@himanshuG45 3 жыл бұрын
Plz have a video on chatbot with flask
@gamelords7201
@gamelords7201 Жыл бұрын
in the codebasics website of this video there is no next button. So the course completion status cant be made 100%, its stuck at 98 %
@gulatiaryan
@gulatiaryan 3 жыл бұрын
How to start with AWS
@shruti3951
@shruti3951 3 жыл бұрын
when will this course end its almost one year lmao is it never ending ? complete this asap coz then it wont called learning it will be upgradations XD
@rajmakwana8452
@rajmakwana8452 3 жыл бұрын
Sir I need your help I am so confused 🙏🙏
@annperera6352
@annperera6352 3 жыл бұрын
hello sir can you do a video on implementing Adaboost and CART
@pafiwachitake3318
@pafiwachitake3318 2 жыл бұрын
using autotune is giving back an attribute error, claiming that
@ayazpatel105
@ayazpatel105 3 жыл бұрын
Hey Can you make a video on RDD and Data frames, if you don't make your system will get corona.
@jessy3933
@jessy3933 3 жыл бұрын
I totally don't understand this pls
@manojahlawat2881
@manojahlawat2881 3 жыл бұрын
Sir hindi me bolo plz...
Will A Guitar Boat Hold My Weight?
00:20
MrBeast
Рет қаралды 233 МЛН
HAH Chaos in the Bathroom 🚽✨ Smart Tools for the Throne 😜
00:49
123 GO! Kevin
Рет қаралды 14 МЛН
This is why Deep Learning is really weird.
2:06:38
Machine Learning Street Talk
Рет қаралды 388 М.
How I would learn Machine Learning (if I could start over)
7:43
AssemblyAI
Рет қаралды 758 М.
Deep Learning Basics: Introduction and Overview
1:08:06
Lex Fridman
Рет қаралды 2,3 МЛН
Will A Guitar Boat Hold My Weight?
00:20
MrBeast
Рет қаралды 233 МЛН