unsqueeze

Chains an Unsqueeze transform that adds a dimension.

Parameters

ctx

The execution context

dim

The position to add the new dimension