From e4d0dbfa29a4a868ee1f0720d64e720d2655d0bc Mon Sep 17 00:00:00 2001 From: Tim Hall Date: Tue, 16 Jan 2024 12:21:13 +0000 Subject: vela: Remove dead code from register command stream - Removed the unused function get_block_config_for_npu_op() Change-Id: If36e4fe65286c4e13e127473d20971a1b6eaa94b Signed-off-by: Tim Hall --- ethosu/vela/register_command_stream_generator.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/ethosu/vela/register_command_stream_generator.py b/ethosu/vela/register_command_stream_generator.py index ec01d3e..e208e8d 100644 --- a/ethosu/vela/register_command_stream_generator.py +++ b/ethosu/vela/register_command_stream_generator.py @@ -586,15 +586,6 @@ def generate_shram_registers( emit.cmd0_with_param(cmd0.NPU_SET_ACC_FORMAT, acc_format_map[arch_block_config.acc_type]) -def get_block_config_for_npu_op( - arch, npu_op: NpuBlockOperation, npu_block_type: NpuBlockType, is_partkernel: bool, ifm_resampling: resampling_mode -) -> Optional[ArchitectureBlockConfig]: - """ - Given npu_op.block_config, returns a corresponding ArchitectureBlockConfig. - Returns None if the block_config does not fit. - """ - - def get_arch_block_config( npu_op: NpuBlockOperation, block_traversal: NpuBlockTraversal, arch: ArchitectureFeatures ) -> ArchitectureBlockConfig: -- cgit v1.2.1