betterwithage commited on
Commit
2ad4d32
·
verified ·
1 Parent(s): 221e652

lambda-gate ops shim

Browse files
build/torch-universal/szl_lambda_gate/_ops.py ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ # SPDX-License-Identifier: Apache-2.0
2
+ # Auto-style ops namespace shim for the universal kernel. Unique suffix lets
3
+ # multiple versions load in the same process (Kernel Hub requirement).
4
+ import torch
5
+
6
+ ops = torch.ops._szl_lambda_gate_20260623081355
7
+
8
+
9
+ def add_op_namespace_prefix(op_name: str) -> str:
10
+ return f"_szl_lambda_gate_20260623081355::{op_name}"