From 5a8d13f44d8abde18ad2261d3e4c4fe5c1dfb443 Mon Sep 17 00:00:00 2001 From: cyy Date: Fri, 17 Jul 2026 09:15:27 +0800 Subject: [PATCH] Emit std types from codegen --- codegen/api/types/types.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/codegen/api/types/types.py b/codegen/api/types/types.py index dd80daebb33..20cb61eaac0 100644 --- a/codegen/api/types/types.py +++ b/codegen/api/types/types.py @@ -18,14 +18,14 @@ halfT = BaseCppType("torch::executor", "Half") bfloat16T = BaseCppType("torch::executor", "BFloat16") -stringT = BaseCppType("torch::executor", "string_view") +stringT = BaseCppType("std", "string_view") scalarTypeT = BaseCppType("torch::executor", "ScalarType") tensorT = BaseCppType("torch::executor", "Tensor") tensorListT = BaseCppType("torch::executor", "TensorList") scalarT = BaseCppType("torch::executor", "Scalar") memoryFormatT = BaseCppType("torch::executor", "MemoryFormat") intArrayRefT = BaseCppType("torch::executor", "IntArrayRef") -optionalT = BaseCppType("torch::executor", "optional") +optionalT = BaseCppType("std", "optional") contextT = BaseCppType("torch::executor", "KernelRuntimeContext") contextExpr = Expr(