Skip to content

Input<Func> should allow for optional dimension constraints #3306

Description

@steven-johnson

When writing composable Generators, it's preferable to use Input<Func> and Output<Func>; if such a Generator is AOT-compiled, this quietly becomes Buffer instead of Func, but there is no way to set buffer-related constraints in this case (e.g. a fixed number of channels, specific strides, etc).

The current workaround is to wrap such a Generator with one that uses Input<Buffer> explicitly, but this is a lot of boilerplate for something that might be done more simply.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions