torch.tx.extractVariables
function extractVariables(pattern: string): string[]Extract variable names from a pattern string. Returns an array of identifier names that are not built-in functions or keywords.
Parameters
patternstring- The pattern string to extract variables from
Returns
string[]– Array of variable names found in the pattern