Skip to content

kali/coding

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 

Repository files navigation

Coding

I'm using this repo README as a landing page for my twitch stream https://www.twitch.tv/kalicoding. Usually I'll be working on https://github.com/sonos/tract

Past broadcasts on https://www.youtube.com/channel/UCHzHGOiKEAalDk5atWpBLmg

Current work: Activation functions VM

Computing neural networks efficiently requires to evaluate "activation functions". They are simple functions operating on floats. They are your basic mid-school math function: y = f(x). Each value in the output tensor is the result of evaluating the function on the value at that same place in the input tensor. So basically, you can ignore all tensor geometry, they are a simple foreach looping over a math expression, which makes them great candidates for SIMD optimisation.

But we don't want to write all of them in assembly for all architectures. So we're doing a Virtual Machine. It will run a "microcode" over a slice of values. Each activation function must be translated to microcode only once, and the microcode interpreter must be implemented on top of each architecture of interest, only once.

The tract issue sonos/tract#1008 comments contains

About

This is a repo I'm using essentially for its README. No code.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published