Create a new class, class EntryStage(Stage) that is for Stages that can only be used as the first Stage in a Sequence.
These stages are special because they take the --input argument, which accepts one input from the top-level turnkey --inputs argument. All turnkey sequences must already start their sequence with such a stage, this would just make it explicit and allow us to add helper functions.
Existing entry stages:
discover
onnx-load
Planned entry stages:
load-build
load model from checkpoint
Problems we can solve with this:
Automatic handling of the hidden --inputs argument
Guardrails to ensure entry stages are always used, and only used, as the first stage in a sequence
Create a new class,
class EntryStage(Stage)
that is for Stages that can only be used as the first Stage in a Sequence.These stages are special because they take the
--input
argument, which accepts one input from the top-levelturnkey --inputs
argument. All turnkey sequences must already start their sequence with such a stage, this would just make it explicit and allow us to add helper functions.Existing entry stages:
discover
onnx-load
Planned entry stages:
load-build
Problems we can solve with this:
--inputs
argument