torch.tx.createLazyExpressionWith
function createLazyExpressionWith(pattern: string, bindings: Record<string, TensorOrNumber>): LazyExpressionCreate a lazy expression with initial bindings.
Convenience function that combines createLazyExpression and .with().
Parameters
patternstring- The expression pattern
bindingsRecord<string, TensorOrNumber>- Initial variable bindings
Returns
LazyExpression– A LazyExpression with the given bindingsExamples
// Create with initial bindings
const bound = $.lazyWith('x @ w + b', { w: weights, b: bias });
// Execute with remaining variables
const result = bound.execute({ x: input });