已合并
fix: cat/cat.out回退手写实现路径 #40093
fix: cat/cat.out回退手写实现路径 #40093
已合并
zzhongmin创建于 7月4日
1 个文件变更+2-2
Mtorchnpugen/gen_backend_stubs.py+2-2
@@ -447,8 +447,8 @@ def parse_backend_yaml(
447 supported_by_name[op_schema_name] = op_info447 supported_by_name[op_schema_name] = op_info
448 if isinstance(op, dict):448 if isinstance(op, dict):
449 native_func = native_functions_map.get(op_schema_name)449 native_func = native_functions_map.get(op_schema_name)
450- is_structured = bool(op.get('structured', False))450+ is_structured = bool(op.get('structured', False)) if op_name != "cat.out" else False
451- has_structured_delegate = op.get('structured_delegate') is not None451+ has_structured_delegate = op.get('structured_delegate') is not None if op_name != "cat" else False
452 if is_structured or has_structured_delegate:452 if is_structured or has_structured_delegate:
453 if native_func is None:453 if native_func is None:
454 raise KeyError(f"Found an invalid structured operator name: {op_schema_name}")454 raise KeyError(f"Found an invalid structured operator name: {op_schema_name}")