Rejects an operation on the first dimension, which is the batch dimension. An operator that changes it would silently change the number of observations, which fails much later with a mismatch against the target.
Arguments
- dim
(
integer(1))
The resolved dimension that the operator changes, seeresolve_dim().- shape
(
integer())
The input shape, used for the error message.- id
(
character(1))
The id of thePipeOp, which the error message names.
See also
Other Shape Assertions:
assert_dim_in_range(),
assert_known_dims(),
assert_ndim(),
assert_positive_extent(),
assert_same_batch_size(),
assert_same_ndim(),
assert_shape(),
assert_shapes()