Skip to content
Snippets Groups Projects
Commit 8d53aa55 authored by Cyril Moineau's avatar Cyril Moineau
Browse files

[fix] Backslash are not allowed in f-string in recent version of Python.

parent 402e24a1
No related branches found
No related tags found
2 merge requests!17v0.1.0,!13[fix] Remove tensor registration due to...
Pipeline #59884 passed
...@@ -37,7 +37,8 @@ def supported_boards() -> list[str]: ...@@ -37,7 +37,8 @@ def supported_boards() -> list[str]:
def gen_board_files(path:str, board:str)->None: def gen_board_files(path:str, board:str)->None:
if board not in supported_boards(): if board not in supported_boards():
raise ValueError(f"Board {board} is not supported, supported board are:\n\t-{'\n\t-'.join(supported_boards())}") joint_board_str = "\n\t-".join(supported_boards())
raise ValueError(f"Board {board} is not supported, supported board are:\n\t-{joint_board_str}")
if isinstance(path, str): path = Path(path) if isinstance(path, str): path = Path(path)
# Create dnn directory is not exist # Create dnn directory is not exist
......
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