See Post Categories

Metal 3D Graphics Part 2: Animated Uniform Data with Synchronization

Recap In the previous post we setup the necessary basic code to render a multi-colored triangle using Metal. By doing so we learned about the fundamental concepts of the Metal API:

A MTLDevice represents the actual GPU. A MTLRenderPipelineDescriptor / MTLRenderPipelineState describes what the render pipeline consists of. In particular,...

Metal 3D Graphics Part 1: Basic Rendering

What is Metal, and why use it? Metal is a powerful new GPU programming API designed by Apple. Originally it was announced in 2014 for iOS and claimed significant performance benefits over OpenGL, the standard 3D graphics API, and since 2014 it has gained the ability for general purpose GPU...

Multi Variable Linear Regression

Multi Variable Regression In chapter 2.1 we learned the basics of PyTorch by creating a single variable linear regression model. In this chapter we expand this model to handle multiple variables. Note that less time will be spent explaining the basics of PyTorch: only new concepts will be explained, so...

Exploring Optimization Convergence

Exploring Optimization Convergence In the previous chapter we created a simple single variable linear regression model to fit a data set. While the Python code was actually fairly short and simple, I did gloss over some details related to the optimization, and I hope to use this short chapter to...

Single Variable Linear Regression

Single Variable Regression Since this is the very first tutorial in this guide and no knowledge is assumed about machine learning or PyTorch, this tutorial is a bit on the long side. This tutorial will give you an overview of how to do machine learning work in general, a mathematical...