O'Reilly logo

Learn Unity ML-Agents - Fundamentals of Unity Machine Learning by Micheal Lanham

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Exploring the tensor

One of the things about Python that turns developers away is the loose typing. It can also be difficult to debug applications without the right tools, or with the right tools that are loosely typed. This gets more complicated when we start to look at complex mathematical types, such as tensors, in code. Fortunately, Visual Studio Code provides a simple Python debugger that can expose type inspection at runtime. Let's see how this works by going through the following exercise:

  1. Open Visual Studio Code back up to the last exercise.
  2. Set a breakpoint by clicking just in the margin of the editor, as shown in the following image:
Setting a breakpoint in Visual Studio Code
  1. From the menu, select Debug | Start Debugging. Let ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required