Skip to content
This repository was archived by the owner on Jan 27, 2026. It is now read-only.

Commit 2d8e2b1

Browse files
authored
metal: use Python-safe op name (#339)
1 parent 03fc4c6 commit 2d8e2b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build2cmake/src/torch/metal.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ pub fn write_torch_ext_metal(
3030

3131
let mut file_set = FileSet::default();
3232

33-
let ops_name = kernel_ops_identifier(&target_dir, &build.general.name, ops_id);
33+
let ops_name = kernel_ops_identifier(&target_dir, &build.general.python_name(), ops_id);
3434

3535
write_cmake(
3636
env,

0 commit comments

Comments
 (0)