Skip to content

Commit

Permalink
fix init
Browse files Browse the repository at this point in the history
  • Loading branch information
Giuseppe5 committed Aug 25, 2024
1 parent ed87026 commit f2924a5
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/brevitas/nn/mixin/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
is_dynamo_compiling = lambda: False
else:
is_dynamo_compiling = torch._dynamo.is_compiling

from torch import nn
from torch import Tensor
import torch.jit
Expand Down
2 changes: 1 addition & 1 deletion src/brevitas/proxy/float_runtime_quant.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def is_fnuz(self):
class ActFloatQuantProxyFromInjector(ActFloatQuantProxyFromInjectorBase):

def __init__(self, quant_layer, quant_injector):
super().__init__(self, quant_layer, quant_injector)
super().__init__(quant_layer, quant_injector)
self.cache_class = _CachedIOFloat

def create_quant_tensor(self, qt_args, x=None):
Expand Down
2 changes: 1 addition & 1 deletion src/brevitas/proxy/groupwise_float_runtime_quant.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
class GroupwiseActFloatQuantProxyFromInjector(ActFloatQuantProxyFromInjectorBase):

def __init__(self, quant_layer, quant_injector):
super().__init__(self, quant_layer, quant_injector)
super().__init__(quant_layer, quant_injector)
self.cache_class = _CachedIOGroupwiseFloat

@property
Expand Down
2 changes: 1 addition & 1 deletion src/brevitas/proxy/groupwise_int_runtime_quant.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
class GroupwiseActQuantProxyFromInjector(ActQuantProxyFromInjector):

def __init__(self, quant_layer, quant_injector):
super().__init__(self, quant_layer, quant_injector)
super().__init__(quant_layer, quant_injector)
self.cache_class = _CachedIOGroupwiseInt

@property
Expand Down

0 comments on commit f2924a5

Please sign in to comment.