From 3929cecd9934ba1f95557dde5e03dd6632f39c62 Mon Sep 17 00:00:00 2001 From: singagan <53442471+singagan@users.noreply.github.com> Date: Thu, 25 Apr 2024 21:18:39 +0200 Subject: [PATCH] Using hand-mapping for resnet (#1412) --- programming_examples/ml/resnet/layers_conv2_x/Makefile | 4 ++-- programming_examples/ml/resnet/layers_conv2_x/test.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/programming_examples/ml/resnet/layers_conv2_x/Makefile b/programming_examples/ml/resnet/layers_conv2_x/Makefile index c1551eb962..58cff28326 100755 --- a/programming_examples/ml/resnet/layers_conv2_x/Makefile +++ b/programming_examples/ml/resnet/layers_conv2_x/Makefile @@ -12,9 +12,9 @@ mlirFileName = aie all: build/conv2dk1_i8.o build/conv2dk1_skip_init.o build/conv2dk3.o build/conv2dk1_skip.o build/conv2dk1_ui8.o build/final.xclbin -build/${mlirFileName}.mlir: aie2.py +build/${mlirFileName}.mlir: aie.mlir mkdir -p ${@D} - python3 $< > $@ + cp $< $@ insts.txt: build/${mlirFileName}.mlir aiecc.py -v --aie-only-generate-npu --npu-insts-name=$@ $< diff --git a/programming_examples/ml/resnet/layers_conv2_x/test.py b/programming_examples/ml/resnet/layers_conv2_x/test.py index 48b45b99ae..85680ae9a7 100755 --- a/programming_examples/ml/resnet/layers_conv2_x/test.py +++ b/programming_examples/ml/resnet/layers_conv2_x/test.py @@ -442,7 +442,7 @@ def forward(self, x): # ------------------------------------------------------ for i in range(num_iter): start = time.time_ns() - aie_output = execute(app, ifm_mem_fmt, total_wts) * block_2_relu_3 + aie_output = execute(app, ifm_mem_fmt, total_wts3) * block_2_relu_3 stop = time.time_ns() if enable_trace: