Skip to content

Allow no-op graphs? #614

@inexorabletash

Description

@inexorabletash

In #603 a step was added build() to match the Chromium implementation, which errors out if an input operand or a constant operands is specified as an output.

@fdwr writes that this

...would nullify the possibility of a nop graph (say one with just a constant and output), which conceptually seems valid to me, as one scenario is where you have a chained sequence of models with one step that can be an action or a nop, and it may be easier to express by always passing a valid (but empty) graph to that component which executes them all.

But also :

I'm not too worried about it either, since a caller can always insert a dummy identity node to satisfy this constraint.

Raising this per WG telecon discussion

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions