mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-07 00:21:07 +01:00
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/22010 torch.quantization module with observers and conversion routines Reviewed By: zafartahirov Differential Revision: D15554183 fbshipit-source-id: 05a3fabe28dd701978b8ecebf5bfc3a4c044ba5c
10 lines
322 B
Python
10 lines
322 B
Python
from __future__ import absolute_import, division, print_function, unicode_literals
|
|
from collections import namedtuple
|
|
from .observer import *
|
|
|
|
QConfig = namedtuple('QConfig',
|
|
['weight', 'activation'])
|
|
|
|
default_qconfig = QConfig(default_weight_observer(),
|
|
default_observer())
|