check_kernel_name
Description
Verifies the kernel name of an operator.
Prototype
def check_kernel_name(kernel_name)
Parameters
Parameter |
Description |
|---|---|
kernel_name |
Kernel name, which is a string. Contains a maximum of 200 characters starting with an underscore (_) or a letter. Must be a combination of letters, digits, and underscores (_). |
Returns
None
"RuntimeError" is thrown if the verification fails.
Restrictions
None
Example
from tbe.common.utils import para_check
para_check.check_kernel_name("9_a")
Parent topic: Operator Argument Verification