GB0309

Graph-Break Type

Short name describing what triggered the graph break

torch.cond: improper args/kwargs

Context

Values or code snippet captured at the break point

args: {args}, kwargs: {kwargs}

Explanation

Explanation of why the graph break was triggered

torch.cond expects 4 positional arguments (got {len(args)}) and no keyword arguments (got {len(kwargs)}) Usage: cond(pred, cond_fn, body_fn, operands)

Hints

Hints on how to resolve the graph break

Additional Information

Click here to add Additional Info

Back to Registry