fn make_width_height_valid(
    shape: &[TensorDimension],
    width: &mut Option<TensorWidthDimension>,
    height: &mut Option<TensorHeightDimension>
)