Skip to content

Commit

Permalink
Fix (proxy/runtime): Typo fix on type hint
Browse files Browse the repository at this point in the history
  • Loading branch information
nickfraser committed Sep 3, 2024
1 parent 71c93c8 commit 16847f4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/brevitas/proxy/runtime_quant.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,9 @@ def bit_width(self, force_eval=True):
return self.retrieve_attribute('bit_width', force_eval)

def create_quant_tensor(
self, qt_args: Tuple[Any], x: Optional[IntQuantTensor] = None) -> IntQuantTensor:
self,
qt_args: Union[Tensor, Tuple[Any]],
x: Optional[IntQuantTensor] = None) -> IntQuantTensor:

if x is None:
out = IntQuantTensor(*qt_args, self.is_signed, self.training)
Expand Down

0 comments on commit 16847f4

Please sign in to comment.