Skip to content

apaszke/torch-quantize

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

quantize

This package allows to train regular torch neural networks with quantized weights.

How to use it?

local q = require 'quantize'
model:quantize(q.fixed(1, 4))

To enable call :quantize() on a model and pass a quantizer function. For now there's one provided with the package.

q.fixed(integer, reminder) rounds all weights to a range representable using integer bits for integer part and reminder bits for remainder part (it also adds one implicit bit for the sign).

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages