Fireship · @fireship

TensorFlow in 100 Seconds

Uploaded August 3, 2022 · Length 2:39

TensorFlow in 100 Seconds

Summary

A 100-second introduction to TensorFlow, an open-source machine learning framework for deep neural networks.

  • tensorflow
  • machine learning
  • deep learning
  • neural networks
  • python

Transcript preview

The first 2 minutes of the transcript. Select a timestamp to watch that moment on YouTube.

  1. 0:00

    tensorflow an open source machine

  2. 0:02

    learning framework famous for powering

  3. 0:04

    deep neural networks with high-level

  4. 0:06

    code it was developed by the google

  5. 0:08

    brain team and first released in 2015.

  6. 0:10

    it's most commonly used with python but

  7. 0:12

    can run in other languages like

  8. 0:14

    javascript c plus plus and java at its

  9. 0:16

    core it's just a library for programming

  10. 0:18

    with linear algebra and statistics as

  11. 0:20

    you know the word tensor describes a

  12. 0:22

    multilinear relationship between sets of

  13. 0:24

    algebraic objects within a vector space

  14. 0:26

    aka a multi-dimensional array what makes

  15. 0:28

    it special is its collection of apis for

  16. 0:31

    data processing visualization model

  17. 0:33

    evaluation and deployment that make deep

  18. 0:35

    learning accessible to the average

  19. 0:37

    developer it's extremely portable and is

  20. 0:39

    able to run on tiny mobile cpus or

  21. 0:42

    microcontrollers with tensorflow lite

  22. 0:44

    can run in the browser with

  23. 0:45

    tensorflow.js while the core library can

  24. 0:47

    scale up to multiple gpus or run on

  25. 0:49

    tensor processing units ships engineered

  26. 0:52

    specifically to run tensorflow at a

  27. 0:54

    massive scale it's used in medicine for

  28. 0:56

    object detection and mri images by

  29. 0:58

    twitter to sort your timeline by tweet

  30. 1:00

    relevance by spotify to recommend music

  31. 1:02

    by paypal for fraud detection in

  32. 1:04

    addition to many other applications like

  33. 1:06

    self-driving cars natural language

  34. 1:08

    processing and so on to build your own

  35. 1:10

    neural network right now create a python

  36. 1:12

    file and install tensorflow next we'll

  37. 1:14

    need some data like fashion mnist which

  38. 1:16

    we can automatically import the goal is

  39. 1:18

    to train a model that can predict the

  40. 1:19

    clothing type of each image tensorflow

  41. 1:21

    has a subclassing api for expert users

  42. 1:24

    but also integrates with the

  43. 1:25

    beginner-friendly keras library which

  44. 1:27

    has a sequential api that can easily

  45. 1:29

    build neural networks layer by layer we

  46. 1:31

    start with a flattened layer that takes

  47. 1:33

    the 28 by 28 pixel image as an input and

  48. 1:35

    converts it into a one-dimensional array

  49. 1:37

    this input layer is then fed into a

  50. 1:39

    dense layer with 128 fully connected

  51. 1:42

    neurons or nodes you can think of each

  52. 1:44

    node like its own linear regression as

  53. 1:46

    each data point flows through it it'll

  54. 1:47

    try to guess the output and gradually

  55. 1:49

    update a mapping of weights to determine

  56. 1:51

    the importance of a given variable in

  57. 1:53

    this case it uses a rectified linear

  58. 1:55

    activation function that will output the

  59. 1:57

    input if a certain threshold is met

  60. 1:59

    otherwise it will just output zero and