Checks that shapes is a non-empty list() of valid shapes, see assert_shape().
Arguments
- shapes
- coerce
(
logical(1))
Whether to coerce the shapes tointeger()if possible.- named
(
logical(1))
Whether the shapes must be uniquely named.- null_ok
(
logical(1))
WhetherNULL, i.e. a wholly unknown shape, is valid.- unknown_batch
(
logical(1)|NULL)
Whether the batch dimension must be unknown, i.e.NA. If leftNULL(default), the first dimension can beNAor not.
Value
The shapes, coerced to integer() if coerce is TRUE.