Learning Library

← Back to Library

TensorFlow Basics: Tensors, Training, Deployment

Key Points

  • TensorFlow is an open‑source, multi‑language framework (Python, JavaScript, Java, C++) that lets you develop, train, and improve AI and machine‑learning models.
  • A tensor is essentially a multi‑dimensional array (a multilinear algebraic structure) that serves as the fundamental data unit for machine‑learning computations.
  • The platform offers an iterative workflow: you can choose training hardware (CPU, GPU, or TPU), access built‑in datasets, and use ready‑made “estimators” or starter neural‑network models to accelerate development.
  • TensorFlow provides APIs for model interaction and supports deployment across a wide range of environments, including mobile (iOS/Android), embedded systems (Raspberry Pi, ARM), Linux, and browsers via TensorFlow.js.

Full Transcript

# TensorFlow Basics: Tensors, Training, Deployment **Source:** [https://www.youtube.com/watch?v=GnGhI1vKi20](https://www.youtube.com/watch?v=GnGhI1vKi20) **Duration:** 00:04:09 ## Summary - TensorFlow is an open‑source, multi‑language framework (Python, JavaScript, Java, C++) that lets you develop, train, and improve AI and machine‑learning models. - A tensor is essentially a multi‑dimensional array (a multilinear algebraic structure) that serves as the fundamental data unit for machine‑learning computations. - The platform offers an iterative workflow: you can choose training hardware (CPU, GPU, or TPU), access built‑in datasets, and use ready‑made “estimators” or starter neural‑network models to accelerate development. - TensorFlow provides APIs for model interaction and supports deployment across a wide range of environments, including mobile (iOS/Android), embedded systems (Raspberry Pi, ARM), Linux, and browsers via TensorFlow.js. ## Sections - [00:00:00](https://www.youtube.com/watch?v=GnGhI1vKi20&t=0s) **Introducing Tensors and TensorFlow** - The speaker explains that a tensor is a multi‑dimensional array used in machine learning and describes TensorFlow as an open‑source, multi‑language platform that simplifies creating, training, and deploying AI models. - [00:03:23](https://www.youtube.com/watch?v=GnGhI1vKi20&t=203s) **TensorFlowJS for Embedded Devices** - The speaker explains how TensorFlowJS lets you build and run models directly in code—including on microcontrollers—and encourages newcomers to dive in and share their first‑hand experiences. ## Full Transcript
0:00On my bucket list for this year is a 0:03commitment to do more tinkering with 0:05machine learning and AI. And as I've 0:08started this research, I keep running 0:10into references to what is a Tensor, 0:13what is a TensorFlow. Let's go ahead and 0:15break these down real quick. TensorFlow 0:18is an open- source project you can 0:19access via GitHub and it can be used 0:22with a variety of modern languages like 0:24Python, JavaScript, Java, and C++. Put 0:28simply, it's used to develop and improve 0:32AI and machine learning models, which is 0:35why you hear about it so much. So, the 0:38second question makes me ask, what is a 0:40tensor anyway? It turns out a tensor is 0:43an algorithm expressed as a multilinear, 0:47which is essentially a complex array 0:49used in machine learning. One way of 0:52showing this is a multi-dimensional 0:55array kind of like this shape. 0:58TensorFlow is an open-source platform 1:01for creating and using models. It's just 1:04that simple. And what I wanted to 1:06outline is kind of the way you work 1:08through it. It is a very iterative 1:10platform where you can really get 1:12started immediately taking advantage of 1:15machine learning. It comes first by 1:18doing the training. Now when it comes to 1:20building these models, creating them, 1:22there are many decisions to make and 1:24this is where TensorFlow really aids you 1:26in this process and you can decide it to 1:29say hey I wanted to train this I have a 1:31set of data uh I want to make this model 1:34be a CPU be trained by CPU or GPU or 1:38there's there's even tensor uh computing 1:41processing units that you can do as well 1:43to train your data but it gives you an 1:45opportunity to make that decision when 1:47you want to create the model. Now, if 1:49you don't have your own data, you can it 1:52will give you data sets that you can 1:53leverage. All right? If you uh kind of 1:57don't want to go the process of creating 1:59your models by hand, there are some 2:02starter let's say we call them 2:04estimators, which are like starter uh 2:07neural networks to get started or models 2:09that you can use to really try to get 2:11jumpstart your your your process of 2:13doing this. And then the last part is 2:16once you have something you have to 2:18deploy that well another great part of 2:20that is you can also give you an API. 2:24Testflow is going to give you an API you 2:26can use code name kas uh but that will 2:30be a way that you can actually input 2:32data to train your models. It 2:33encapsulates any of the models that you 2:35want to create. So very important there 2:38that process of getting started is very 2:40easy. Now the last part you may say is 2:42all right I'm using TensorFlow I want to 2:44know what I want to achieve in my 2:46application but how do I get it into 2:49where I want to develop and that's where 2:52the last part that it offers for you it 2:54gives you a method for deployment a it's 2:58going to let you get into mobile 3:03and embedded abbreviated EM so iOS 3:08Android SDKs 3:10and the ability to get on Raspberry 3:12Pies. All right, Linux, ARM SDKs for you 3:15to get there as well. Secondly, you'll 3:18be able to get 3:20on browsers. 3:24There's going to be a library which is 3:25TensorFlowJS 3:28which will give you a mechanism for 3:30creating and executing your models 3:32inside um your code as well. And also 3:36you can do uh I kind of mentioned 3:37embedded systems, but that's something 3:39you can do. But there's an additional 3:40piece here too. You can get even get in 3:42on embedded devices. They even have 3:44microcontrollers. So the opportunities 3:46are endless here to really get started 3:48here. Well, for me, when I want to get 3:51started with something, I actually love 3:52being able to take advantage of any 3:54platform I can that can help me jump 3:56start and get and get going. And that's 3:58what you should do. I want you to leave 4:00in the comments what you think about 4:01TensorFlow and tell us how easy it was 4:04to get jump start your journey. As 4:06always, see your respon