stringjax_tools.auto_vectorise.ArgSpec#
- class ArgSpec(shape=())#
Bases:
objectOptional exact trailing sample-shape specification.
ArgSpecis not needed for the common rank-only API. It is retained as a readable wrapper for entries insample_shapesor global shape defaults.- Parameters:
shape (
Any) – Expected trailing sample shape. UseNoneor()for a scalar, anintfor a fixed one-dimensional sample, a tuple/list for higher-rank samples, a string for attribute lookup on the first bound object exposing that attribute, or a callable receiving the bound argument mapping and returning a concrete shape.
- __init__(shape=())#
Methods
__init__([shape])Attributes
shape