Skip to content

Commit

Permalink
[VGG, MNV1] Rename hls to hw and enable MNV1 ZCU102 build
Browse files Browse the repository at this point in the history
  • Loading branch information
auphelia committed May 3, 2024
1 parent 2675f94 commit 2115ebf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build/mobilenet-v1/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
model_name = "mobilenetv1-w4a4"

# which platforms to build the networks for
zynq_platforms = ["ZCU104"] # "ZCU104"
zynq_platforms = ["ZCU104", "ZCU102"]
alveo_platforms = ["U250"] # "U50", "U200", "U280"
platforms_to_build = zynq_platforms + alveo_platforms

Expand Down
6 changes: 3 additions & 3 deletions build/vgg10-radioml/custom_steps.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
from finn.builder.build_dataflow_config import DataflowBuildConfig
from qonnx.transformation.change_3d_tensors_to_4d import Change3DTo4DTensors
from qonnx.transformation.general import GiveUniqueNodeNames
import finn.transformation.fpgadataflow.convert_to_hw_layers as to_hls
import finn.transformation.fpgadataflow.convert_to_hw_layers as to_hw
import finn.transformation.streamline.absorb as absorb


Expand All @@ -40,7 +40,7 @@ def step_pre_streamline(model: ModelWrapper, cfg: DataflowBuildConfig):


def step_convert_final_layers(model: ModelWrapper, cfg: DataflowBuildConfig):
model = model.transform(to_hls.InferChannelwiseLinearLayer())
model = model.transform(to_hls.InferLabelSelectLayer())
model = model.transform(to_hw.InferChannelwiseLinearLayer())
model = model.transform(to_hw.InferLabelSelectLayer())
model = model.transform(GiveUniqueNodeNames())
return model

0 comments on commit 2115ebf

Please sign in to comment.