Skip to content

Commit

Permalink
Added test
Browse files Browse the repository at this point in the history
  • Loading branch information
Giuseppe5 committed Mar 22, 2024
1 parent 5c9cb19 commit 1f61f28
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/brevitas/test_quant_tensor.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import torch

from brevitas.quant_tensor import QuantTensor
from brevitas.quant_tensor import QuantTensorBase


def test_qt():
v = torch.randn(1)
qt = QuantTensor(v, v, v, v, True, True)
assert isinstance(qt, QuantTensor)
assert isinstance(qt, tuple)
assert isinstance(qt, QuantTensorBase)

0 comments on commit 1f61f28

Please sign in to comment.