torch.tx.tokenize
function tokenize(expression: string): TokenizerResultTokenize an expression string with tensor placeholders.
The input is constructed from the tagged template literal's string parts,
with ${N} markers indicating where tensors are interpolated.
Parameters
expressionstring- The expression string with $N placeholders
Returns
TokenizerResult– Tokenizer result with tokens and any errors