Helper function to create a ConstantAttr from R values.
Arguments
- name
(
character(1))
The name of the attribute.- value
(any)
The R value to convert to a constant.- dtype
(
character(1)|NULL)
The dtype of the constant. If NULL, inferred from value.- shape
(
integer()|NULL)
The shape of the constant. If NULL, inferred from value.- simplify_dense
(
logical(1))
Whether to simplify dense representation. Set toFALSEfor multi-dimensional arrays.