File size: 189 Bytes
9a2611f
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
import torch
from . import @OPS_NAME@
ops = torch.ops.@OPS_NAME@

def add_op_namespace_prefix(op_name: str):
    """
    Prefix op by namespace.
    """
    return f"@OPS_NAME@::{op_name}"