From 945abe83fa4f7fda708f5997b02e95ada01edbfa Mon Sep 17 00:00:00 2001 From: Krzysztof Parzyszek Date: Tue, 18 Jan 2022 11:18:45 -0600 Subject: [PATCH] [Hexagon] Return pathlib.Path from get_hexagon_rpc_path() Type annotations don't do anything, the type conversion needs to be explicit. --- python/tvm/contrib/hexagon/build.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/tvm/contrib/hexagon/build.py b/python/tvm/contrib/hexagon/build.py index ef081f2d79e3..e640aad89231 100644 --- a/python/tvm/contrib/hexagon/build.py +++ b/python/tvm/contrib/hexagon/build.py @@ -51,11 +51,11 @@ def get_hexagon_rpc_dir() -> pathlib.Path: for path in libinfo.find_lib_path(): rpc_dir = os.path.join(os.path.dirname(path), "hexagon_rpc") if os.path.isdir(rpc_dir): - HEXAGON_RPC_DIR = pathlib.Path(rpc_dir) + HEXAGON_RPC_DIR = rpc_dir break else: raise "hexagon_rpc was not found." - return HEXAGON_RPC_DIR + return pathlib.Path(HEXAGON_RPC_DIR) class HexagonLauncher: