Skip to content

Commit

Permalink
faulty base branch update removed
Browse files Browse the repository at this point in the history
Signed-off-by: lstasytis <[email protected]>
  • Loading branch information
lstasytis committed Oct 15, 2024
1 parent 4df80fa commit 0efe48b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Binary file removed test_brevitas_debug.onnx
Binary file not shown.
3 changes: 1 addition & 2 deletions tests/brevitas/test_brevitas_debug.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
import os
import torch
from brevitas.export import export_qonnx
from brevitas.quant_tensor import _unpack_quant_tensor
from pkgutil import get_data
from qonnx.core.modelwrapper import ModelWrapper
from qonnx.util.cleanup import cleanup as qonnx_cleanup
Expand Down Expand Up @@ -91,7 +90,7 @@ def test_brevitas_debug(QONNX_FINN_conversion):
else:
assert len(names_common) == 8
for dbg_name in names_common:
tensor_pytorch = _unpack_quant_tensor(dbg_hook.values[dbg_name]).detach().numpy()
tensor_pytorch = dbg_hook.values[dbg_name].value.detach().numpy()
tensor_finn = output_dict[dbg_name]
assert np.isclose(tensor_finn, tensor_pytorch, atol=1e-5).all()
os.remove(finn_onnx)

0 comments on commit 0efe48b

Please sign in to comment.