Skip to content
Snippets Groups Projects
Commit edc4ddda authored by Yaman Umuroglu's avatar Yaman Umuroglu
Browse files

[Test] use canonical layout in MW test

parent 6ccee2a1
No related branches found
No related tags found
No related merge requests found
...@@ -31,7 +31,7 @@ import onnx ...@@ -31,7 +31,7 @@ import onnx
from collections import Counter from collections import Counter
import brevitas.onnx as bo import brevitas.onnx as bo
import numpy as np import numpy as np
import finn.core.data_layout as data_layout import finn.core.data_layout as DataLayout
from finn.core.modelwrapper import ModelWrapper from finn.core.modelwrapper import ModelWrapper
from finn.util.test import get_test_model_trained from finn.util.test import get_test_model_trained
...@@ -70,7 +70,7 @@ def test_modelwrapper(): ...@@ -70,7 +70,7 @@ def test_modelwrapper():
assert out_prod.op_type == "MultiThreshold" assert out_prod.op_type == "MultiThreshold"
inp_layout = model.get_tensor_layout(inp_name) inp_layout = model.get_tensor_layout(inp_name)
assert inp_layout is None assert inp_layout is None
inp_layout = data_layout.NCHW inp_layout = DataLayout.NCHW
model.set_tensor_layout(inp_name, inp_layout) model.set_tensor_layout(inp_name, inp_layout)
assert model.get_tensor_layout(inp_name) == inp_layout assert model.get_tensor_layout(inp_name) == inp_layout
os.remove(export_onnx_path) os.remove(export_onnx_path)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment