replaceFirst

fun replaceFirst(dim: Long): TensorShape

Replace the first dimension with a new dimension size.

Return

The new changed TensorShape.

Parameters

dim

New size for first dimension