File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 33from easydict import EasyDict as edict
44from typing import List , Callable , Dict
55
6- from . import BConfig , prepare_binary_model
6+ from . import BConfig , prepare_binary_model , Identity
77from .ops import *
88
99
Original file line number Diff line number Diff line change 1414 BasicInputBinarizer ,
1515 XNORWeightBinarizer
1616)
17- from bnn import BConfig , prepare_binary_model
17+ from bnn import BConfig , prepare_binary_model , Identity
1818from bnn .models .resnet import resnet18
1919
2020from .utils import AverageMeter , ProgressMeter , accuracy
6464print ('==> Preparing the model for binarization' )
6565bconfig = BConfig (
6666 activation_pre_process = BasicInputBinarizer ,
67- activation_post_process = nn . Identity ,
67+ activation_post_process = Identity ,
6868 weight_pre_process = XNORWeightBinarizer
6969 )
7070# first and last layer will be kept FP32
Original file line number Diff line number Diff line change 33 pre_activation :
44 name : " BasicInputBinarizer"
55 post_activation :
6- NAME : " nn. Identity"
6+ NAME : " Identity"
77 weight :
88 name : " XNORWeightBinarizer"
99 args :
You can’t perform that action at this time.
0 commit comments