Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/lnstadrum/sigmoid_like_tf_op

A TensorFlow C++ extension implementing a piecewise-linear approximation of sigmoid activation function used in Beatmup.
https://github.com/lnstadrum/sigmoid_like_tf_op

beatmup sigmoid-activation tensorflow tensorflow-op

Last synced: 7 days ago
JSON representation

A TensorFlow C++ extension implementing a piecewise-linear approximation of sigmoid activation function used in Beatmup.

Awesome Lists containing this project

README

        

This repository contains a TensorFlow extension implementing a piecewise-linear approximation of sigmoid activation function used in [Beatmup](https://github.com/lnstadrum/beatmup).

* This function shrinks the activation signal into 0..1 range, enabling efficient fixed-point storage and reducing the memory bandwidth in inference.
* Compared to the original sigmoid, this function is very efficient to compute in both forward and backward senses and does not suffer from vanishing gradient issue.

This activation function is featured in a [dog image classifier running on Raspberry Pi GPU](https://lnstadrum.medium.com/towards-gpu-accelerated-image-classification-on-low-end-hardware-ec592e125ad9).

![Activation functions](graph.png)