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 ...

Get Learn Unity ML-Agents - Fundamentals of Unity Machine Learning now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.