From 3e73d60bcf7bda7320d2ae5d80481179a3acc033 Mon Sep 17 00:00:00 2001 From: Cocoa Date: Sun, 17 Mar 2024 22:02:39 +0800 Subject: [PATCH] fix riscv64 cpuinfo patch --- patches/apply_patch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patches/apply_patch.py b/patches/apply_patch.py index 76eeb37..96102be 100644 --- a/patches/apply_patch.py +++ b/patches/apply_patch.py @@ -79,7 +79,7 @@ def patch_cpuinfo_riscv64_sys_hwprobe(tf_version: str, tf_src_root: str): with open(cpuinfo_cmake, 'r') as source: for line in source: line_strip = line.strip() - if not patched_1 and line_strip == '# Sync with tensorflow/third_party/cpuinfo/workspace.bzl': + if not patched_1 and line_strip == '# Sync with tensorflow/workspace2.bzl': fixed.write(f" {line_strip} # fixed\n") fixed.write(" GIT_TAG 6543fec09b2f04ac4a666882998b534afc9c1349\n") patched_1 = True